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 Details

    • AbstractActionSerializer

      protected AbstractActionSerializer(short type, short length)
  • Method Details

    • 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 interface OFSerializer<Action>
      Parameters:
      input - object to be serialized
      outBuffer - 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 interface HeaderSerializer<Action>
      Parameters:
      input - object whose headers should be serialized
      outBuffer - 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)