Class PortMessageSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.messages.AbstractMessageSerializer<PortMessage>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.messages.PortMessageSerializer
-
- All Implemented Interfaces:
HeaderSerializer<PortMessage>
,OFGeneralSerializer
,OFSerializer<PortMessage>
public class PortMessageSerializer extends AbstractMessageSerializer<PortMessage>
Translates PortMod messages. OF protocol versions: 1.3.
-
-
Constructor Summary
Constructors Constructor Description PortMessageSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte
getMessageType()
Message type getter.void
serialize(PortMessage message, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.messages.AbstractMessageSerializer
serializeHeader
-
-
-
-
Method Detail
-
serialize
public void serialize(PortMessage message, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<PortMessage>
- Overrides:
serialize
in classAbstractMessageSerializer<PortMessage>
- Parameters:
message
- object to be serializedoutBuffer
- output buffer
-
getMessageType
protected byte getMessageType()
Description copied from class:AbstractMessageSerializer
Message type getter.- Specified by:
getMessageType
in classAbstractMessageSerializer<PortMessage>
- Returns:
- of message type
-
-