Class AbstractMatchCodec

java.lang.Object
org.opendaylight.openflowjava.eric.codec.match.AbstractMatchCodec
All Implemented Interfaces:
HeaderDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, OFDeserializer<MatchEntry>, OFGeneralDeserializer, OFGeneralSerializer, OFSerializer<MatchEntry>
Direct Known Subclasses:
Icmpv6NDOptionsTypeCodec, Icmpv6NDReservedCodec

public abstract class AbstractMatchCodec extends Object implements OFSerializer<MatchEntry>, OFDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, HeaderDeserializer<MatchEntry>
  • Field Details

    • headerWithMask

      protected EricHeader headerWithMask
    • headerWithoutMask

      protected EricHeader headerWithoutMask
  • Constructor Details

    • AbstractMatchCodec

      public AbstractMatchCodec()
  • Method Details

    • deserializeHeaderToBuilder

      protected MatchEntryBuilder deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)
    • deserializeHeader

      public MatchEntry deserializeHeader(io.netty.buffer.ByteBuf message)
      Description copied from interface: HeaderDeserializer
      Deserializes a byte message headers.
      Specified by:
      deserializeHeader in interface HeaderDeserializer<MatchEntry>
      Parameters:
      message - message as bytes in ByteBuf
      Returns:
      POJO/DTO
    • serializeHeader

      public void serializeHeader(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
      Description copied from interface: HeaderSerializer
      Serializes object headers (e.g. for Multipart message - Table Features).
      Specified by:
      serializeHeader in interface HeaderSerializer<MatchEntry>
      Parameters:
      input - object whose headers should be serialized
      outBuffer - output buffer
    • serializeHeader

      public void serializeHeader(EricHeader input, io.netty.buffer.ByteBuf outBuffer)
    • getHeader

      protected EricHeader getHeader(boolean hasMask)
    • buildHeader

      protected EricHeader buildHeader(boolean hasMask)
    • getHeaderWithoutHasMask

      public EricHeader getHeaderWithoutHasMask()
    • getHeaderWithHasMask

      public EricHeader getHeaderWithHasMask()
    • getEricFieldCode

      public abstract int getEricFieldCode()
      Returns the numeric representation of eric_field.
    • getOxmClassCode

      public abstract int getOxmClassCode()
      Returns the numeric representation of oxm_class.
    • getValueLength

      public abstract int getValueLength()
      Returns the match entry value length.
    • getEricField

      public abstract MatchField getEricField()
      Returns the eric_field class.
    • getOxmClass

      public abstract OxmClassBase getOxmClass()
      Returns the oxm_class class.