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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intGet length.protected intgetType()Get type.voidTransforms POJO/DTO into byte message (ByteBuf).voidserializeHeader(Action action, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.
-
Constructor Details
-
DropActionSerializer
public DropActionSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
serializein interfaceOFSerializer<Action>- Overrides:
serializein classAbstractActionSerializer<Action>- Parameters:
action- object to be serializedoutBuffer- output buffer
-
serializeHeader
Description copied from interface:HeaderSerializerSerializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeaderin interfaceHeaderSerializer<Action>- Overrides:
serializeHeaderin classAbstractActionSerializer<Action>- Parameters:
action- object whose headers should be serializedoutBuffer- output buffer
-
getLength
protected int getLength()Description copied from class:AbstractActionSerializerGet length.- Specified by:
getLengthin classAbstractActionSerializer<Action>- Returns:
- action length
-
getType
protected int getType()Description copied from class:AbstractActionSerializerGet type.- Specified by:
getTypein classAbstractActionSerializer<Action>- Returns:
- numeric representation of action type
-