Class AbstractActionSerializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.serialization.action.AbstractActionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<Action>
,OFGeneralSerializer
,OFSerializer<Action>
- Direct Known Subclasses:
OF10EnqueueActionSerializer
,OF10OutputActionSerializer
,OF10SetDlDstActionSerializer
,OF10SetDlSrcActionSerializer
,OF10SetNwDstActionSerializer
,OF10SetNwSrcActionSerializer
,OF10SetNwTosActionSerializer
,OF10SetTpDstActionSerializer
,OF10SetTpSrcActionSerializer
,OF10SetVlanPcpActionSerializer
,OF10SetVlanVidActionSerializer
,OF10StripVlanActionSerializer
,OF13CopyTtlInActionSerializer
,OF13CopyTtlOutActionSerializer
,OF13DecMplsTtlActionSerializer
,OF13DecNwTtlActionSerializer
,OF13GroupActionSerializer
,OF13OutputActionSerializer
,OF13PopMplsActionSerializer
,OF13PopPbbActionSerializer
,OF13PopVlanActionSerializer
,OF13PushMplsActionSerializer
,OF13PushPbbActionSerializer
,OF13PushVlanActionSerializer
,OF13SetMplsTtlActionSerializer
,OF13SetNwTtlActionSerializer
,OF13SetQueueActionSerializer
public abstract class AbstractActionSerializer extends Object implements OFSerializer<Action>, HeaderSerializer<Action>
Base class for an action serializer.- Author:
- michal.polkorab
-
-
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()
Returns the action length.protected abstract int
getType()
Returns the numeric representation of action type.void
serialize(Action input, 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 input, io.netty.buffer.ByteBuf outBuffer)
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
-
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
-
getType
protected abstract int getType()
Returns the numeric representation of action type.
-
getLength
protected abstract int getLength()
Returns the action length.
-
-