Class OxmMplsTcSerializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
-
- org.opendaylight.openflowjava.protocol.impl.serialization.match.OxmMplsTcSerializer
-
- All Implemented Interfaces:
HeaderSerializer<MatchEntry>
,OFGeneralSerializer
,OFSerializer<MatchEntry>
public class OxmMplsTcSerializer extends AbstractOxmMatchEntrySerializer
OxmMplsTc match entry serializer.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description OxmMplsTcSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getOxmClassCode()
Returns the numeric representation of oxm_class.protected int
getOxmFieldCode()
Returns the numeric representation of oxm_field.protected int
getValueLength()
Returns the match entry value length (without mask length).void
serialize(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
serializeHeader, writeMask, writeOxmFieldAndLength
-
-
-
-
Method Detail
-
serialize
public void serialize(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<MatchEntry>
- Overrides:
serialize
in classAbstractOxmMatchEntrySerializer
- Parameters:
entry
- object to be serializedoutBuffer
- output buffer
-
getOxmClassCode
protected int getOxmClassCode()
Description copied from class:AbstractOxmMatchEntrySerializer
Returns the numeric representation of oxm_class.- Specified by:
getOxmClassCode
in classAbstractOxmMatchEntrySerializer
-
getOxmFieldCode
protected int getOxmFieldCode()
Description copied from class:AbstractOxmMatchEntrySerializer
Returns the numeric representation of oxm_field.- Specified by:
getOxmFieldCode
in classAbstractOxmMatchEntrySerializer
-
getValueLength
protected int getValueLength()
Description copied from class:AbstractOxmMatchEntrySerializer
Returns the match entry value length (without mask length).- Specified by:
getValueLength
in classAbstractOxmMatchEntrySerializer
-
-