Class DeserializationFactory
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.deserialization.DeserializationFactory
Factory for deserialization.
- Author:
- michal.polkorab, timotej.kubas, giuseppex.petralia@intel.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.binding.DataObjectdeserialize(io.netty.buffer.ByteBuf rawMessage, org.opendaylight.yangtools.yang.common.Uint8 version) Transforms ByteBuf into correct POJO message.voidregisterMapping(TypeToClassKey key, Class<?> clazz) Register new type to class mapping used to assign return type when deserializing message.booleanUnregister type to class mapping used to assign return type when deserializing message.
-
Constructor Details
-
DeserializationFactory
-
-
Method Details
-
deserialize
public org.opendaylight.yangtools.yang.binding.DataObject deserialize(io.netty.buffer.ByteBuf rawMessage, org.opendaylight.yangtools.yang.common.Uint8 version) Transforms ByteBuf into correct POJO message.- Parameters:
rawMessage- the messageversion- version decoded from OpenFlow protocol message- Returns:
- correct POJO as DataObject
-
registerMapping
Register new type to class mapping used to assign return type when deserializing message.- Parameters:
key- type to class keyclazz- return class
-
unregisterMapping
Unregister type to class mapping used to assign return type when deserializing message.- Parameters:
key- type to class key- Returns:
- true if mapping was successfully removed
-