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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Transforms POJO/DTO into byte message (ByteBuf).protected abstract void
serializeBody
(Action input, io.netty.buffer.ByteBuf outBuffer) final void
serializeHeader
(Action input, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.protected final short
type()
Returns the numeric representation of action type.
-
Constructor Details
-
AbstractActionSerializer
protected AbstractActionSerializer(short type, short length)
-
-
Method Details
-
serialize
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
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
-