Class DecapCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.nx.codec.action.AbstractActionCodec
-
- org.opendaylight.openflowjava.nx.codec.action.DecapCodec
-
- All Implemented Interfaces:
OFDeserializer<Action>,OFGeneralDeserializer,OFGeneralSerializer,OFSerializer<Action>
public class DecapCodec extends AbstractActionCodec
-
-
Field Summary
Fields Modifier and Type Field Description static NiciraActionDeserializerKeyDESERIALIZER_KEYstatic intLENGTHstatic NiciraActionSerializerKeySERIALIZER_KEY
-
Constructor Summary
Constructors Constructor Description DecapCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actiondeserialize(io.netty.buffer.ByteBuf message)Transforms byte message into POJO/DTO (of type E).voidserialize(Action input, io.netty.buffer.ByteBuf outBuffer)Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowjava.nx.codec.action.AbstractActionCodec
deserializeHeader, getExperimenterId, readNxmHeader, serializeHeader, skipPadding, writeNxmHeader, writePaddingAndSetLength
-
-
-
-
Field Detail
-
LENGTH
public static final int LENGTH
- See Also:
- Constant Field Values
-
SERIALIZER_KEY
public static final NiciraActionSerializerKey SERIALIZER_KEY
-
DESERIALIZER_KEY
public static final NiciraActionDeserializerKey DESERIALIZER_KEY
-
-
Method Detail
-
deserialize
public Action deserialize(io.netty.buffer.ByteBuf message)
Description copied from interface:OFDeserializerTransforms byte message into POJO/DTO (of type E).- Parameters:
message- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
serialize
public void serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Parameters:
input- object to be serializedoutBuffer- output buffer
-
-