Class PacketInMessageFactory
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketInMessageFactory
- All Implemented Interfaces:
OFGeneralSerializer
,OFSerializer<PacketInMessage>
,SerializerRegistryInjector
public class PacketInMessageFactory
extends Object
implements OFSerializer<PacketInMessage>, SerializerRegistryInjector
Translates PacketIn messages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
serialize
(PacketInMessage message, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).
-
Constructor Details
-
PacketInMessageFactory
public PacketInMessageFactory()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<PacketInMessage>
- Parameters:
message
- object to be serializedoutBuffer
- output buffer
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-