Class AbstractActionSerializer<T extends Action>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<T>
-
- All Implemented Interfaces:
HeaderSerializer<T>
,OFGeneralSerializer
,OFSerializer<T>
- Direct Known Subclasses:
AbstractSetFieldActionSerializer
,CopyTtlInActionSerializer
,CopyTtlOutActionSerializer
,DecMplsTtlActionSerializer
,DecNwTtlActionSerializer
,DropActionSerializer
,GroupActionSerializer
,OutputActionSerializer
,PopMplsActionSerializer
,PopPbbActionSerializer
,PopVlanActionSerializer
,PushMplsActionSerializer
,PushPbbActionSerializer
,PushVlanActionSerializer
,SetFieldActionSerializer
,SetMplsTtlActionSerializer
,SetNwTtlActionSerializer
,SetQueueActionSerializer
public abstract class AbstractActionSerializer<T extends Action> extends Object implements OFSerializer<T>, HeaderSerializer<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractActionSerializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract int
getLength()
Get length.protected abstract int
getType()
Get type.void
serialize(T input, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader(T input, io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
-
-
-
Method Detail
-
serialize
public void serialize(T input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<T extends Action>
- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
public void serializeHeader(T 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<T extends Action>
- Parameters:
input
- object whose headers should be serializedoutBuffer
- output buffer
-
getType
protected abstract int getType()
Get type.- Returns:
- numeric representation of action type
-
getLength
protected abstract int getLength()
Get length.- Returns:
- action length
-
-