Class MatchDeserializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.deserialization.match.MatchDeserializer
- All Implemented Interfaces:
DeserializerRegistryInjector
,HeaderDeserializer<Match>
,OFDeserializer<Match>
,OFGeneralDeserializer
,MatchEntryDeserializer
,MatchEntryDeserializerRegistry
public class MatchDeserializer
extends Object
implements OFDeserializer<Match>, HeaderDeserializer<Match>, MatchEntryDeserializerRegistry, MatchEntryDeserializer, DeserializerRegistryInjector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(io.netty.buffer.ByteBuf inBuffer) Transforms byte message into POJO/DTO (of type E).void
deserializeEntry
(io.netty.buffer.ByteBuf inBuffer, MatchBuilder builder) Transforms byte match entry message into POJO/DTO (of type E).deserializeHeader
(io.netty.buffer.ByteBuf inBuffer) Deserializes a byte message headers.void
injectDeserializerRegistry
(DeserializerRegistry deserializerRegistry) Injects deserializer registry into deserializer.void
registerEntryDeserializer
(MatchEntryDeserializerKey key, MatchEntryDeserializer deserializer) Registers match entry deserializer.boolean
Unregisters match entry deserializer.
-
Constructor Details
-
MatchDeserializer
-
-
Method Details
-
deserialize
Description copied from interface:OFDeserializer
Transforms byte message into POJO/DTO (of type E).- Specified by:
deserialize
in interfaceOFDeserializer<Match>
- Parameters:
inBuffer
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
deserializeHeader
Description copied from interface:HeaderDeserializer
Deserializes a byte message headers.- Specified by:
deserializeHeader
in interfaceHeaderDeserializer<Match>
- Parameters:
inBuffer
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
deserializeEntry
Description copied from interface:MatchEntryDeserializer
Transforms byte match entry message into POJO/DTO (of type E).- Specified by:
deserializeEntry
in interfaceMatchEntryDeserializer
- Parameters:
inBuffer
- message as bytes in ByteBufbuilder
- match builder
-
registerEntryDeserializer
public void registerEntryDeserializer(MatchEntryDeserializerKey key, MatchEntryDeserializer deserializer) Description copied from interface:MatchEntryDeserializerRegistry
Registers match entry deserializer.- Specified by:
registerEntryDeserializer
in interfaceMatchEntryDeserializerRegistry
- Parameters:
key
- used for deserializer lookupdeserializer
- deserializer instance
-
unregisterEntryDeserializer
Description copied from interface:MatchEntryDeserializerRegistry
Unregisters match entry deserializer.- Specified by:
unregisterEntryDeserializer
in interfaceMatchEntryDeserializerRegistry
- Parameters:
key
- used for deserializer lookup- Returns:
- true if deserializer was removed, false if no deserializer was found under specified key
-
injectDeserializerRegistry
Description copied from interface:DeserializerRegistryInjector
Injects deserializer registry into deserializer.- Specified by:
injectDeserializerRegistry
in interfaceDeserializerRegistryInjector
- Parameters:
deserializerRegistry
- registry of deserializers
-