Class AbstractIpv4PrefixEntrySerializer

java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix,Integer>
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractIpv4PrefixEntrySerializer
All Implemented Interfaces:
MatchEntrySerializer
Direct Known Subclasses:
ArpSourceTransportAddressEntrySerializer, ArpTargetTransportAddressEntrySerializer, TunnelIpv4DestinationEntrySerializer, TunnelIpv4SourceEntrySerializer

public abstract class AbstractIpv4PrefixEntrySerializer extends AbstractMatchEntrySerializer<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix,Integer>
  • Constructor Details

    • AbstractIpv4PrefixEntrySerializer

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

    • extractEntryMask

      protected final Integer extractEntryMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix entry)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the mask contained in an entry.
      Specified by:
      extractEntryMask in class AbstractMatchEntrySerializer<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix,Integer>
      Parameters:
      entry - entry to examine
      Returns:
      Mask, null if not present
    • serializeEntry

      protected final void serializeEntry(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix entry, Integer mask, io.netty.buffer.ByteBuf outBuffer)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the corresponding entry from a match.
      Specified by:
      serializeEntry in class AbstractMatchEntrySerializer<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix,Integer>
      Parameters:
      entry - entry to serialize
      mask - mask as extracted from entry
      outBuffer - output buffer