Class OxmVlanVidSerializer
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
org.opendaylight.openflowjava.protocol.impl.serialization.match.OxmVlanVidSerializer
- All Implemented Interfaces:
HeaderSerializer<MatchEntry>
,OFGeneralSerializer
,OFSerializer<MatchEntry>
OxmVlanVid match entry serializer.
- Author:
- michal.polkorab
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Returns the numeric representation of oxm_class.protected int
Returns the numeric representation of oxm_field.protected int
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
-
Constructor Details
-
OxmVlanVidSerializer
public OxmVlanVidSerializer()
-
-
Method Details
-
serialize
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
-