Class TcpFlagsEntrySerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractExperimenterMatchEntrySerializer
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.TcpFlagsEntrySerializer
-
- All Implemented Interfaces:
HeaderSerializer<Match>,OFGeneralSerializer,OFSerializer<Match>,MatchEntrySerializer
public class TcpFlagsEntrySerializer extends AbstractExperimenterMatchEntrySerializer
-
-
Constructor Summary
Constructors Constructor Description TcpFlagsEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longgetExperimenterId()Get experimenter id.protected booleangetHasMask(Match match)Has mask getter.protected intgetOxmClassCode()Oxm class code.protected intgetOxmFieldCode()Oxm field numeric representation.protected intgetValueLength()Get value length.booleanmatchTypeCheck(Match match)Checks if current match is this match type.voidserialize(Match match, io.netty.buffer.ByteBuf outBuffer)Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractExperimenterMatchEntrySerializer
serializeHeader
-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
-
-
-
Method Detail
-
serialize
public void serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
serializein interfaceOFSerializer<Match>- Overrides:
serializein classAbstractExperimenterMatchEntrySerializer- Parameters:
match- object to be serializedoutBuffer- output buffer
-
matchTypeCheck
public boolean matchTypeCheck(Match match)
Description copied from interface:MatchEntrySerializerChecks if current match is this match type.- Parameters:
match- Openflow match- Returns:
- true if matched
-
getHasMask
protected boolean getHasMask(Match match)
Description copied from class:AbstractMatchEntrySerializerHas mask getter.- Specified by:
getHasMaskin classAbstractMatchEntrySerializer- Parameters:
match- Openflow match- Returns:
- if field has or has not mask
-
getExperimenterId
protected long getExperimenterId()
Description copied from class:AbstractExperimenterMatchEntrySerializerGet experimenter id.- Specified by:
getExperimenterIdin classAbstractExperimenterMatchEntrySerializer- Returns:
- experimenter match entry id
-
getOxmFieldCode
protected int getOxmFieldCode()
Description copied from class:AbstractMatchEntrySerializerOxm field numeric representation.- Specified by:
getOxmFieldCodein classAbstractMatchEntrySerializer- Returns:
- numeric representation of oxm_field
-
getOxmClassCode
protected int getOxmClassCode()
Description copied from class:AbstractMatchEntrySerializerOxm class code.- Specified by:
getOxmClassCodein classAbstractMatchEntrySerializer- Returns:
- numeric representation of oxm_class
-
getValueLength
protected int getValueLength()
Description copied from class:AbstractMatchEntrySerializerGet value length.- Specified by:
getValueLengthin classAbstractMatchEntrySerializer- Returns:
- match entry value length (without mask length)
-
-