Class MultipartRequestMessageSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.messages.AbstractMessageSerializer<MultipartRequest>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.MultipartRequestMessageSerializer
-
- All Implemented Interfaces:
HeaderSerializer<MultipartRequest>
,OFGeneralSerializer
,OFSerializer<MultipartRequest>
,SerializerRegistryInjector
public class MultipartRequestMessageSerializer extends AbstractMessageSerializer<MultipartRequest> implements SerializerRegistryInjector
-
-
Constructor Summary
Constructors Constructor Description MultipartRequestMessageSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte
getMessageType()
Message type getter.void
injectSerializerRegistry(SerializerRegistry serializerRegistry)
Injects serializer registry.void
serialize(MultipartRequest 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(MultipartRequest message, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<MultipartRequest>
- Overrides:
serialize
in classAbstractMessageSerializer<MultipartRequest>
- 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<MultipartRequest>
- Returns:
- of message type
-
injectSerializerRegistry
public void injectSerializerRegistry(SerializerRegistry serializerRegistry)
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-
-