public interface XROSubobjectRegistry
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.
|
void |
serializeSubobject(SubobjectContainer subobject,
io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
|
SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) throws RSVPParsingException
type
- subobject type, key in parser registrybuffer
- subobject wrapped in ByteBufmandatory
- XRO specific common fieldRSVPParsingException
- if the parsing did not succeedvoid serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
subobject
- to be parsedbuffer
- buffer where the serialized subobject will be parsedCopyright © 2018 OpenDaylight. All rights reserved.