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
Constructors Constructor Description MatchDeserializer(MatchPath matchPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Match
deserialize(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).Match
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
unregisterEntryDeserializer(MatchEntryDeserializerKey key)
Unregisters match entry deserializer.
-
-
-
Constructor Detail
-
MatchDeserializer
public MatchDeserializer(MatchPath matchPath)
-
-
Method Detail
-
deserialize
public Match deserialize(io.netty.buffer.ByteBuf inBuffer)
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
public Match deserializeHeader(io.netty.buffer.ByteBuf inBuffer)
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
public void deserializeEntry(io.netty.buffer.ByteBuf inBuffer, MatchBuilder builder)
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
public boolean unregisterEntryDeserializer(MatchEntryDeserializerKey key)
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
public void injectDeserializerRegistry(DeserializerRegistry deserializerRegistry)
Description copied from interface:DeserializerRegistryInjector
Injects deserializer registry into deserializer.- Specified by:
injectDeserializerRegistry
in interfaceDeserializerRegistryInjector
- Parameters:
deserializerRegistry
- registry of deserializers
-
-