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
Constructors Modifier Constructor Description protectedAbstractPortNumberWithMaskEntrySerilizer(int oxmClassCode, int oxmFieldCode)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.opendaylight.yangtools.yang.common.Uint16extractEntryMask(Layer4Match entry)Extract the mask contained in an entry.protected abstract org.opendaylight.yangtools.yang.common.Uint16extractMask(Layer4Match entry)protected abstract org.opendaylight.yangtools.yang.common.Uint16extractPort(Layer4Match entry)protected voidserializeEntry(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
-
-
-
-
Method Detail
-
serializeEntry
protected void serializeEntry(Layer4Match entry, org.opendaylight.yangtools.yang.common.Uint16 mask, io.netty.buffer.ByteBuf outBuffer)
Description copied from class:AbstractMatchEntrySerializerExtract the corresponding entry from a match.- Specified by:
serializeEntryin classAbstractMatchEntrySerializer<Layer4Match,org.opendaylight.yangtools.yang.common.Uint16>- Parameters:
entry- entry to serializemask- mask as extracted from entryoutBuffer- output buffer
-
extractEntryMask
protected org.opendaylight.yangtools.yang.common.Uint16 extractEntryMask(Layer4Match entry)
Description copied from class:AbstractMatchEntrySerializerExtract the mask contained in an entry.- Specified by:
extractEntryMaskin classAbstractMatchEntrySerializer<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)
-
-