Class AbstractOxmExperimenterMatchEntrySerializer
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
org.opendaylight.openflowjava.protocol.impl.serialization.match.ext.AbstractOxmExperimenterMatchEntrySerializer
- All Implemented Interfaces:
HeaderSerializer<MatchEntry>
,OFGeneralSerializer
,OFSerializer<MatchEntry>
- Direct Known Subclasses:
OnfOxmTcpFlagsSerializer
public abstract class AbstractOxmExperimenterMatchEntrySerializer
extends AbstractOxmMatchEntrySerializer
Created by Anil Vishnoi (avishnoi@Brocade.com) on 7/25/16.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.opendaylight.yangtools.yang.common.Uint32
Returns the Experimenter match entry ID.void
serialize
(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).protected ExperimenterIdCase
serializeExperimenterId
(MatchEntry matchEntry, io.netty.buffer.ByteBuf out) void
serializeHeader
(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.protected static void
writeOxmFieldAndLength
(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg) Methods inherited from class org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
getOxmClassCode, getOxmFieldCode, getValueLength, writeMask
-
Constructor Details
-
AbstractOxmExperimenterMatchEntrySerializer
public AbstractOxmExperimenterMatchEntrySerializer()
-
-
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
-
serializeHeader
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<MatchEntry>
- Overrides:
serializeHeader
in classAbstractOxmMatchEntrySerializer
- Parameters:
entry
- object whose headers should be serializedoutBuffer
- output buffer
-
writeOxmFieldAndLength
protected static void writeOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg) -
serializeExperimenterId
protected ExperimenterIdCase serializeExperimenterId(MatchEntry matchEntry, io.netty.buffer.ByteBuf out) -
getExperimenterId
protected abstract org.opendaylight.yangtools.yang.common.Uint32 getExperimenterId()Returns the Experimenter match entry ID.
-