Class InPortEntrySerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.InPortEntrySerializer
-
- All Implemented Interfaces:
HeaderSerializer<Match>
,OFGeneralSerializer
,OFSerializer<Match>
,MatchEntrySerializer
public class InPortEntrySerializer extends AbstractMatchEntrySerializer
-
-
Constructor Summary
Constructors Constructor Description InPortEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
getHasMask(Match match)
Has mask getter.protected int
getOxmClassCode()
Oxm class code.protected int
getOxmFieldCode()
Oxm field numeric representation.protected int
getValueLength()
Get value length.boolean
matchTypeCheck(Match match)
Checks if current match is this match type.void
serialize(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:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Match>
- Overrides:
serialize
in classAbstractMatchEntrySerializer
- Parameters:
match
- object to be serializedoutBuffer
- output buffer
-
matchTypeCheck
public boolean matchTypeCheck(Match match)
Description copied from interface:MatchEntrySerializer
Checks 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:AbstractMatchEntrySerializer
Has mask getter.- Specified by:
getHasMask
in classAbstractMatchEntrySerializer
- Parameters:
match
- Openflow match- Returns:
- if field has or has not mask
-
getOxmFieldCode
protected int getOxmFieldCode()
Description copied from class:AbstractMatchEntrySerializer
Oxm field numeric representation.- Specified by:
getOxmFieldCode
in classAbstractMatchEntrySerializer
- Returns:
- numeric representation of oxm_field
-
getOxmClassCode
protected int getOxmClassCode()
Description copied from class:AbstractMatchEntrySerializer
Oxm class code.- Specified by:
getOxmClassCode
in classAbstractMatchEntrySerializer
- Returns:
- numeric representation of oxm_class
-
getValueLength
protected int getValueLength()
Description copied from class:AbstractMatchEntrySerializer
Get value length.- Specified by:
getValueLength
in classAbstractMatchEntrySerializer
- Returns:
- match entry value length (without mask length)
-
-