public class SimpleXROSubobjectRegistry extends Object implements XROSubobjectRegistry
| Constructor and Description |
|---|
SimpleXROSubobjectRegistry() |
| Modifier and Type | Method and Description |
|---|---|
SubobjectContainer |
parseSubobject(int type,
io.netty.buffer.ByteBuf buffer,
boolean mandatory)
Finds parser for given subobject type in the registry.
|
AutoCloseable |
registerSubobjectParser(int subobjectType,
XROSubobjectParser parser) |
AutoCloseable |
registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass,
XROSubobjectSerializer serializer) |
void |
serializeSubobject(SubobjectContainer subobject,
io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
|
public AutoCloseable registerSubobjectParser(int subobjectType, XROSubobjectParser parser)
public AutoCloseable registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, XROSubobjectSerializer serializer)
public SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) throws RSVPParsingException
XROSubobjectRegistryparseSubobject in interface XROSubobjectRegistrytype - subobject type, key in parser registrybuffer - subobject wrapped in ByteBufmandatory - XRO specific common fieldRSVPParsingException - if the parsing did not succeedpublic void serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
XROSubobjectRegistryserializeSubobject in interface XROSubobjectRegistrysubobject - to be parsedbuffer - buffer where the serialized subobject will be parsedCopyright © 2019 OpenDaylight. All rights reserved.