Class Ipv4DestinationEntrySerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.Ipv4DestinationEntrySerializer
-
- All Implemented Interfaces:
HeaderSerializer<Match>,OFGeneralSerializer,OFSerializer<Match>,MatchEntrySerializer
public class Ipv4DestinationEntrySerializer extends AbstractMatchEntrySerializer
-
-
Constructor Summary
Constructors Constructor Description Ipv4DestinationEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.AbstractMatchEntrySerializer
serializeHeader, 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 classAbstractMatchEntrySerializer- 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
-
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)
-
-