Class MatchSerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.MatchSerializer
- All Implemented Interfaces:
HeaderSerializer<Match>
,OFGeneralSerializer
,OFSerializer<Match>
,SerializerRegistryInjector
,MatchEntrySerializerRegistry
public class MatchSerializer
extends Object
implements OFSerializer<Match>, HeaderSerializer<Match>, MatchEntrySerializerRegistry, SerializerRegistryInjector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
registerEntrySerializer
(MatchEntrySerializerKey key, MatchEntrySerializer serializer) Registers match entry serializer.void
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader
(Match match, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.boolean
Unregisters match entry serializer.
-
Constructor Details
-
MatchSerializer
public MatchSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Match>
- Parameters:
match
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<Match>
- Parameters:
match
- object whose headers should be serializedoutBuffer
- output buffer
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-
registerEntrySerializer
Description copied from interface:MatchEntrySerializerRegistry
Registers match entry serializer.- Specified by:
registerEntrySerializer
in interfaceMatchEntrySerializerRegistry
- Parameters:
key
- used for deserializer lookupserializer
- serializer instance
-
unregisterEntrySerializer
Description copied from interface:MatchEntrySerializerRegistry
Unregisters match entry serializer.- Specified by:
unregisterEntrySerializer
in interfaceMatchEntrySerializerRegistry
- Parameters:
key
- used for serializer lookup- Returns:
- true if serializer was removed, false if no serializer was found under specified key
-