Class AbstractOxmMatchEntrySerializer

java.lang.Object
org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
All Implemented Interfaces:
HeaderSerializer<MatchEntry>, OFGeneralSerializer, OFSerializer<MatchEntry>
Direct Known Subclasses:
AbstractOxmExperimenterMatchEntrySerializer, AbstractOxmIpv4AddressSerializer, AbstractOxmIpv6AddressSerializer, AbstractOxmMacAddressSerializer, OxmArpOpSerializer, OxmEthTypeSerializer, OxmIcmpv4CodeSerializer, OxmIcmpv4TypeSerializer, OxmIcmpv6CodeSerializer, OxmIcmpv6TypeSerializer, OxmInPhyPortSerializer, OxmInPortSerializer, OxmIpDscpSerializer, OxmIpEcnSerializer, OxmIpProtoSerializer, OxmIpv6ExtHdrSerializer, OxmIpv6FlabelSerializer, OxmMetadataSerializer, OxmMplsBosSerializer, OxmMplsLabelSerializer, OxmMplsTcSerializer, OxmPacketTypeSerializer, OxmPbbIsidSerializer, OxmSctpDstSerializer, OxmSctpSrcSerializer, OxmTcpDstSerializer, OxmTcpSrcSerializer, OxmTunnelIdSerializer, OxmUdpDstSerializer, OxmUdpSrcSerializer, OxmVlanPcpSerializer, OxmVlanVidSerializer

public abstract class AbstractOxmMatchEntrySerializer extends Object implements OFSerializer<MatchEntry>, HeaderSerializer<MatchEntry>
Parent for all match entry serializers.
Author:
michal.polkorab
  • Constructor Details

    • AbstractOxmMatchEntrySerializer

      public AbstractOxmMatchEntrySerializer()
  • Method Details

    • serialize

      public void serialize(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer)
      Description copied from interface: OFSerializer
      Transforms POJO/DTO into byte message (ByteBuf).
      Specified by:
      serialize in interface OFSerializer<MatchEntry>
      Parameters:
      entry - object to be serialized
      outBuffer - output buffer
    • serializeHeader

      public void serializeHeader(MatchEntry entry, 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:
      entry - object whose headers should be serialized
      outBuffer - output buffer
    • writeMask

      protected static void writeMask(byte[] mask, io.netty.buffer.ByteBuf out, int length)
    • writeOxmFieldAndLength

      protected static void writeOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg)
    • getOxmFieldCode

      protected abstract int getOxmFieldCode()
      Returns the numeric representation of oxm_field.
    • getOxmClassCode

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

      protected abstract int getValueLength()
      Returns the match entry value length (without mask length).