Class AbstractSetFieldActionSerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<Action>
org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractSetFieldActionSerializer
- All Implemented Interfaces:
HeaderSerializer<Action>
,OFGeneralSerializer
,OFSerializer<Action>
,SerializerRegistryInjector
- Direct Known Subclasses:
SetDlDstActionSerializer
,SetDlSrcActionSerializer
,SetNwDstActionSerializer
,SetNwSrcActionSerializer
,SetNwTosActionSerializer
,SetTpDstActionSerializer
,SetTpSrcActionSerializer
,SetVlanIdActionSerializer
,SetVlanPcpActionSerializer
,StripVlanActionSerializer
public abstract class AbstractSetFieldActionSerializer
extends AbstractActionSerializer<Action>
implements SerializerRegistryInjector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SetFieldCase
buildAction
(Action input) Build #SetFieldCase
from #Action
.protected int
Get length.protected int
getType()
Get type.void
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
Transforms POJO/DTO into byte message (ByteBuf).Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer
serializeHeader
-
Constructor Details
-
AbstractSetFieldActionSerializer
public AbstractSetFieldActionSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Action>
- Overrides:
serialize
in classAbstractActionSerializer<Action>
- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
buildAction
Build #SetFieldCase
from #Action
.- Parameters:
input
- input action- Returns:
- set field action
-
getType
protected int getType()Description copied from class:AbstractActionSerializer
Get type.- Specified by:
getType
in classAbstractActionSerializer<Action>
- Returns:
- numeric representation of action type
-
getLength
protected int getLength()Description copied from class:AbstractActionSerializer
Get length.- Specified by:
getLength
in classAbstractActionSerializer<Action>
- Returns:
- action length
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-