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>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
AbstractMatchEntrySerializer.ConstantHeaderWriter<E,
M>, AbstractMatchEntrySerializer.HeaderWriter<E, M> -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractIpv4PrefixEntrySerializer
(int oxmClassCode, int oxmFieldCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected final Integer
extractEntryMask
(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix entry) Extract the mask contained in an entry.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) Extract the corresponding entry from a match.Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
extractEntry, serializeIfPresent, writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
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 classAbstractMatchEntrySerializer<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 classAbstractMatchEntrySerializer<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix,
Integer> - Parameters:
entry
- entry to serializemask
- mask as extracted from entryoutBuffer
- output buffer
-