Class AbstractExperimenterMatchCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
-
- org.opendaylight.openflowjava.nx.codec.match.AbstractExperimenterMatchCodec
-
- All Implemented Interfaces:
HeaderDeserializer<MatchEntry>
,HeaderSerializer<MatchEntry>
,OFDeserializer<MatchEntry>
,OFGeneralDeserializer
,OFGeneralSerializer
,OFSerializer<MatchEntry>
- Direct Known Subclasses:
AbstractNshcCodec
,NshFlagsCodec
,NshMdtypeCodec
,NshNpCodec
,NshTtlCodec
,NsiCodec
,NspCodec
public abstract class AbstractExperimenterMatchCodec extends AbstractMatchCodec
-
-
Field Summary
-
Fields inherited from class org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
headerWithMask, headerWithoutMask
-
-
Constructor Summary
Constructors Constructor Description AbstractExperimenterMatchCodec()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected NxmHeader
buildHeader(boolean hasMask)
protected static MatchEntryDeserializerKey
createDeserializerKey(short version, org.opendaylight.yangtools.yang.common.Uint32 expId, int fieldCode)
protected static <F extends MatchField>
MatchEntrySerializerKey<ExperimenterClass,F>createSerializerKey(short version, org.opendaylight.yangtools.yang.common.Uint32 expId, Class<F> oxmField)
MatchEntry
deserialize(io.netty.buffer.ByteBuf message)
Transforms byte message into POJO/DTO (of type E).protected abstract NxExpMatchEntryValue
deserializeValue(io.netty.buffer.ByteBuf message, boolean hasMask)
protected abstract @NonNull org.opendaylight.yangtools.yang.common.Uint32
getExperimenterId()
Class<? extends OxmClassBase>
getOxmClass()
Returns the oxm_class class.int
getOxmClassCode()
Returns the numeric representation of oxm_class.void
serialize(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader(NxmHeader input, io.netty.buffer.ByteBuf outBuffer)
protected abstract void
serializeValue(NxExpMatchEntryValue value, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
-
Methods inherited from class org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
deserializeHeader, deserializeHeaderToBuilder, getHeader, getHeaderWithHasMask, getHeaderWithoutHasMask, getNxmField, getNxmFieldCode, getValueLength, serializeHeader
-
-
-
-
Method Detail
-
createSerializerKey
protected static <F extends MatchField> MatchEntrySerializerKey<ExperimenterClass,F> createSerializerKey(short version, org.opendaylight.yangtools.yang.common.Uint32 expId, Class<F> oxmField)
-
createDeserializerKey
protected static MatchEntryDeserializerKey createDeserializerKey(short version, org.opendaylight.yangtools.yang.common.Uint32 expId, int fieldCode)
-
serialize
public void serialize(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
serializeValue
protected abstract void serializeValue(NxExpMatchEntryValue value, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
-
deserialize
public MatchEntry deserialize(io.netty.buffer.ByteBuf message)
Description copied from interface:OFDeserializer
Transforms byte message into POJO/DTO (of type E).- Parameters:
message
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
deserializeValue
protected abstract NxExpMatchEntryValue deserializeValue(io.netty.buffer.ByteBuf message, boolean hasMask)
-
serializeHeader
public void serializeHeader(NxmHeader input, io.netty.buffer.ByteBuf outBuffer)
- Overrides:
serializeHeader
in classAbstractMatchCodec
-
buildHeader
protected NxmHeader buildHeader(boolean hasMask)
- Overrides:
buildHeader
in classAbstractMatchCodec
-
getOxmClass
public Class<? extends OxmClassBase> getOxmClass()
Description copied from class:AbstractMatchCodec
Returns the oxm_class class.- Specified by:
getOxmClass
in classAbstractMatchCodec
-
getOxmClassCode
public int getOxmClassCode()
Description copied from class:AbstractMatchCodec
Returns the numeric representation of oxm_class.- Specified by:
getOxmClassCode
in classAbstractMatchCodec
-
getExperimenterId
protected abstract @NonNull org.opendaylight.yangtools.yang.common.Uint32 getExperimenterId()
-
-