Class OF13SetFieldActionSerializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.serialization.action.OF13SetFieldActionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<Action>
,OFGeneralSerializer
,OFSerializer<Action>
,SerializerRegistryInjector
public class OF13SetFieldActionSerializer extends Object implements OFSerializer<Action>, HeaderSerializer<Action>, SerializerRegistryInjector
Serializes OF 1.3 SetField actions.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description OF13SetFieldActionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectSerializerRegistry(SerializerRegistry serializerRegistry)
Injects serializer registry.void
serialize(Action action, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader(Action input, io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
-
-
-
Method Detail
-
serialize
public void serialize(Action action, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Action>
- Parameters:
action
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
public void serializeHeader(Action input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<Action>
- Parameters:
input
- object whose headers should be serializedoutBuffer
- output buffer
-
injectSerializerRegistry
public void injectSerializerRegistry(SerializerRegistry serializerRegistry)
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-
-