Class AbstractActionSerializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.serialization.action.AbstractActionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<Action>
,OFGeneralSerializer
,OFSerializer<Action>
- Direct Known Subclasses:
EmptyActionSerializer
,OF10EnqueueActionSerializer
,OF10OutputActionSerializer
,OF10SetDlDstActionSerializer
,OF10SetDlSrcActionSerializer
,OF10SetNwDstActionSerializer
,OF10SetNwSrcActionSerializer
,OF10SetNwTosActionSerializer
,OF10SetTpDstActionSerializer
,OF10SetTpSrcActionSerializer
,OF10SetVlanPcpActionSerializer
,OF10SetVlanVidActionSerializer
,OF13GroupActionSerializer
,OF13OutputActionSerializer
,OF13PopMplsActionSerializer
,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 Modifier Constructor Description protected
AbstractActionSerializer(short type, short length)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).protected abstract void
serializeBody(Action input, io.netty.buffer.ByteBuf outBuffer)
void
serializeHeader(Action input, io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.protected short
type()
Returns the numeric representation of action type.
-
-
-
Method Detail
-
serialize
public final 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 final 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
-
type
protected final short type()
Returns the numeric representation of action type.- Returns:
- Numeric representation of action type.
-
serializeBody
protected abstract void serializeBody(Action input, io.netty.buffer.ByteBuf outBuffer)
-
-