Class AbstractRegCodec

java.lang.Object
org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
org.opendaylight.openflowjava.nx.codec.match.AbstractRegCodec
All Implemented Interfaces:
HeaderDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, OFDeserializer<MatchEntry>, OFGeneralDeserializer, OFGeneralSerializer, OFSerializer<MatchEntry>
Direct Known Subclasses:
Reg0Codec, Reg1Codec, Reg2Codec, Reg3Codec, Reg4Codec, Reg5Codec, Reg6Codec, Reg7Codec

public abstract class AbstractRegCodec extends AbstractMatchCodec
  • Constructor Details

    • AbstractRegCodec

      public AbstractRegCodec()
  • Method Details

    • deserialize

      public MatchEntry deserialize(io.netty.buffer.ByteBuf message)
      Description copied from interface: OFDeserializer
      Transforms byte message into POJO/DTO (of type E).
      Parameters:
      message - message as bytes in ByteBuf
      Returns:
      POJO/DTO
    • serialize

      public void serialize(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
      Description copied from interface: OFSerializer
      Transforms POJO/DTO into byte message (ByteBuf).
      Parameters:
      input - object to be serialized
      outBuffer - output buffer
    • getOxmClassCode

      public int getOxmClassCode()
      Description copied from class: AbstractMatchCodec
      Returns the numeric representation of oxm_class.
      Specified by:
      getOxmClassCode in class AbstractMatchCodec
    • getValueLength

      public int getValueLength()
      Description copied from class: AbstractMatchCodec
      Returns the match entry value length.
      Specified by:
      getValueLength in class AbstractMatchCodec
    • getOxmClass

      public OxmClassBase getOxmClass()
      Description copied from class: AbstractMatchCodec
      Returns the oxm_class class.
      Specified by:
      getOxmClass in class AbstractMatchCodec