use of org.opendaylight.openflowjava.protocol.impl.util.MatchDeserializer in project openflowplugin by opendaylight.
the class DeserializerRegistryImplTest method testRegisterDeserializerNoKey.
/**
* Test - register deserializer with no key.
*/
@Test(expected = IllegalArgumentException.class)
public void testRegisterDeserializerNoKey() {
DeserializerRegistryImpl serReg = new DeserializerRegistryImpl();
serReg.registerDeserializer(null, new MatchDeserializer());
}
use of org.opendaylight.openflowjava.protocol.impl.util.MatchDeserializer in project openflowplugin by opendaylight.
the class DeserializerRegistryImpl method init.
/**
* Decoder table provisioning.
*/
@Override
public void init() {
registry = new HashMap<>();
// register message deserializers
MessageDeserializerInitializer.registerMessageDeserializers(this);
// register additional message deserializers
AdditionalMessageDeserializerInitializer.registerMessageDeserializers(this);
// register common structure deserializers
registerDeserializer(new MessageCodeKey(EncodeConstants.OF10_VERSION_ID, EncodeConstants.EMPTY_VALUE, MatchV10.class), new OF10MatchDeserializer());
registerDeserializer(new MessageCodeKey(EncodeConstants.OF13_VERSION_ID, EncodeConstants.EMPTY_VALUE, Match.class), new MatchDeserializer());
// register match entry deserializers
MatchEntryDeserializerInitializer.registerMatchEntryDeserializers(this);
// register action deserializers
ActionDeserializerInitializer.registerDeserializers(this);
// register instruction deserializers
InstructionDeserializerInitializer.registerDeserializers(this);
}
Aggregations