Class SetFieldActionSerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<SetFieldCase>
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.SetFieldActionSerializer
- All Implemented Interfaces:
HeaderSerializer<SetFieldCase>
,OFGeneralSerializer
,OFSerializer<SetFieldCase>
,SerializerRegistryInjector
public class SetFieldActionSerializer
extends AbstractActionSerializer<SetFieldCase>
implements SerializerRegistryInjector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
Get length.protected int
getType()
Get type.void
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
serialize
(SetFieldCase action, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer
serializeHeader
-
Constructor Details
-
SetFieldActionSerializer
public SetFieldActionSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<SetFieldCase>
- Overrides:
serialize
in classAbstractActionSerializer<SetFieldCase>
- Parameters:
action
- object to be serializedoutBuffer
- output buffer
-
getLength
protected int getLength()Description copied from class:AbstractActionSerializer
Get length.- Specified by:
getLength
in classAbstractActionSerializer<SetFieldCase>
- Returns:
- action length
-
getType
protected int getType()Description copied from class:AbstractActionSerializer
Get type.- Specified by:
getType
in classAbstractActionSerializer<SetFieldCase>
- Returns:
- numeric representation of action type
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-