Class RegLoad2Codec
java.lang.Object
org.opendaylight.openflowjava.nx.codec.action.AbstractActionCodec
org.opendaylight.openflowjava.nx.codec.action.RegLoad2Codec
- All Implemented Interfaces:
DeserializerRegistryInjector
,OFDeserializer<Action>
,OFGeneralDeserializer
,OFGeneralSerializer
,OFSerializer<Action>
,SerializerRegistryInjector
public class RegLoad2Codec
extends AbstractActionCodec
implements SerializerRegistryInjector, DeserializerRegistryInjector
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NiciraActionDeserializerKey
static final NiciraActionSerializerKey
static final byte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(io.netty.buffer.ByteBuf message) Transforms byte message into POJO/DTO (of type E).void
Injects deserializer registry into deserializer.void
injectSerializerRegistry
(SerializerRegistry registry) Injects serializer registry.void
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 Details
-
SUBTYPE
public static final byte SUBTYPE- See Also:
-
SERIALIZER_KEY
-
DESERIALIZER_KEY
-
-
Constructor Details
-
RegLoad2Codec
public RegLoad2Codec()
-
-
Method Details
-
deserialize
Description copied from interface:OFDeserializer
Transforms byte message into POJO/DTO (of type E).- Specified by:
deserialize
in interfaceOFDeserializer<Action>
- Parameters:
message
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Action>
- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
registry
- registry instance
-
injectDeserializerRegistry
Description copied from interface:DeserializerRegistryInjector
Injects deserializer registry into deserializer.- Specified by:
injectDeserializerRegistry
in interfaceDeserializerRegistryInjector
- Parameters:
registry
- registry of deserializers
-