Class AbstractPortNumberWithMaskEntrySerilizer

java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer<Layer4Match,org.opendaylight.yangtools.yang.common.Uint16>
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractPortNumberWithMaskEntrySerilizer
All Implemented Interfaces:
MatchEntrySerializer
Direct Known Subclasses:
TcpDestinationPortEntrySerializer, TcpSourcePortEntrySerializer, UdpDestinationPortEntrySerializer, UdpSourcePortEntrySerializer

public abstract class AbstractPortNumberWithMaskEntrySerilizer extends AbstractMatchEntrySerializer<Layer4Match,org.opendaylight.yangtools.yang.common.Uint16>
  • Constructor Details

    • AbstractPortNumberWithMaskEntrySerilizer

      protected AbstractPortNumberWithMaskEntrySerilizer(int oxmClassCode, int oxmFieldCode)
  • Method Details

    • serializeEntry

      protected void serializeEntry(Layer4Match entry, org.opendaylight.yangtools.yang.common.Uint16 mask, io.netty.buffer.ByteBuf outBuffer)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the corresponding entry from a match.
      Specified by:
      serializeEntry in class AbstractMatchEntrySerializer<Layer4Match,org.opendaylight.yangtools.yang.common.Uint16>
      Parameters:
      entry - entry to serialize
      mask - mask as extracted from entry
      outBuffer - output buffer
    • extractEntryMask

      protected org.opendaylight.yangtools.yang.common.Uint16 extractEntryMask(Layer4Match entry)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the mask contained in an entry.
      Specified by:
      extractEntryMask in class AbstractMatchEntrySerializer<Layer4Match,org.opendaylight.yangtools.yang.common.Uint16>
      Parameters:
      entry - entry to examine
      Returns:
      Mask, null if not present
    • extractPort

      protected abstract org.opendaylight.yangtools.yang.common.Uint16 extractPort(Layer4Match entry)
    • extractMask

      protected abstract org.opendaylight.yangtools.yang.common.Uint16 extractMask(Layer4Match entry)