Class DropActionSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<Action>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.actions.DropActionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<Action>
,OFGeneralSerializer
,OFSerializer<Action>
public class DropActionSerializer extends AbstractActionSerializer<Action>
-
-
Constructor Summary
Constructors Constructor Description DropActionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getLength()
Get length.protected int
getType()
Get type.void
serialize(Action action, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader(Action action, io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
-
-
-
Method Detail
-
serialize
public void serialize(Action action, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Action>
- Overrides:
serialize
in classAbstractActionSerializer<Action>
- Parameters:
action
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
public void serializeHeader(Action action, 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>
- Overrides:
serializeHeader
in classAbstractActionSerializer<Action>
- Parameters:
action
- object whose headers should be serializedoutBuffer
- output buffer
-
getLength
protected int getLength()
Description copied from class:AbstractActionSerializer
Get length.- Specified by:
getLength
in classAbstractActionSerializer<Action>
- Returns:
- action length
-
getType
protected int getType()
Description copied from class:AbstractActionSerializer
Get type.- Specified by:
getType
in classAbstractActionSerializer<Action>
- Returns:
- numeric representation of action type
-
-