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>
-
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
AbstractPortNumberWithMaskEntrySerilizer
(int oxmClassCode, int oxmFieldCode) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opendaylight.yangtools.yang.common.Uint16
extractEntryMask
(Layer4Match entry) Extract the mask contained in an entry.protected abstract org.opendaylight.yangtools.yang.common.Uint16
extractMask
(Layer4Match entry) protected abstract org.opendaylight.yangtools.yang.common.Uint16
extractPort
(Layer4Match entry) protected void
serializeEntry
(Layer4Match entry, org.opendaylight.yangtools.yang.common.Uint16 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
-
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 classAbstractMatchEntrySerializer<Layer4Match,
org.opendaylight.yangtools.yang.common.Uint16> - Parameters:
entry
- entry to serializemask
- mask as extracted from entryoutBuffer
- output buffer
-
extractEntryMask
Description copied from class:AbstractMatchEntrySerializer
Extract the mask contained in an entry.- Specified by:
extractEntryMask
in classAbstractMatchEntrySerializer<Layer4Match,
org.opendaylight.yangtools.yang.common.Uint16> - Parameters:
entry
- entry to examine- Returns:
- Mask, null if not present
-
extractPort
-
extractMask
-