Class NspCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
-
- org.opendaylight.openflowjava.nx.codec.match.AbstractExperimenterMatchCodec
-
- org.opendaylight.openflowjava.nx.codec.match.NspCodec
-
- All Implemented Interfaces:
HeaderDeserializer<MatchEntry>
,HeaderSerializer<MatchEntry>
,OFDeserializer<MatchEntry>
,OFGeneralDeserializer
,OFGeneralSerializer
,OFSerializer<MatchEntry>
public class NspCodec extends AbstractExperimenterMatchCodec
-
-
Field Summary
Fields Modifier and Type Field Description static MatchEntryDeserializerKey
DESERIALIZER_KEY
static MatchEntrySerializerKey<ExperimenterClass,NxmNxNsp>
SERIALIZER_KEY
-
Fields inherited from class org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
headerWithMask, headerWithoutMask
-
-
Constructor Summary
Constructors Constructor Description NspCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NxExpMatchEntryValue
deserializeValue(io.netty.buffer.ByteBuf message, boolean hasMask)
protected org.opendaylight.yangtools.yang.common.Uint32
getExperimenterId()
Class<? extends MatchField>
getNxmField()
Returns the nxm_field class.int
getNxmFieldCode()
Returns the numeric representation of nxm_field.int
getValueLength()
Returns the match entry value length.protected void
serializeValue(NxExpMatchEntryValue value, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
-
Methods inherited from class org.opendaylight.openflowjava.nx.codec.match.AbstractExperimenterMatchCodec
buildHeader, createDeserializerKey, createSerializerKey, deserialize, getOxmClass, getOxmClassCode, serialize, serializeHeader
-
Methods inherited from class org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
deserializeHeader, deserializeHeaderToBuilder, getHeader, getHeaderWithHasMask, getHeaderWithoutHasMask, serializeHeader
-
-
-
-
Field Detail
-
SERIALIZER_KEY
public static final MatchEntrySerializerKey<ExperimenterClass,NxmNxNsp> SERIALIZER_KEY
-
DESERIALIZER_KEY
public static final MatchEntryDeserializerKey DESERIALIZER_KEY
-
-
Method Detail
-
serializeValue
protected void serializeValue(NxExpMatchEntryValue value, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
- Specified by:
serializeValue
in classAbstractExperimenterMatchCodec
-
deserializeValue
protected NxExpMatchEntryValue deserializeValue(io.netty.buffer.ByteBuf message, boolean hasMask)
- Specified by:
deserializeValue
in classAbstractExperimenterMatchCodec
-
getExperimenterId
protected org.opendaylight.yangtools.yang.common.Uint32 getExperimenterId()
- Specified by:
getExperimenterId
in classAbstractExperimenterMatchCodec
-
getNxmFieldCode
public int getNxmFieldCode()
Description copied from class:AbstractMatchCodec
Returns the numeric representation of nxm_field.- Specified by:
getNxmFieldCode
in classAbstractMatchCodec
-
getValueLength
public int getValueLength()
Description copied from class:AbstractMatchCodec
Returns the match entry value length.- Specified by:
getValueLength
in classAbstractMatchCodec
-
getNxmField
public Class<? extends MatchField> getNxmField()
Description copied from class:AbstractMatchCodec
Returns the nxm_field class.- Specified by:
getNxmField
in classAbstractMatchCodec
-
-