public interface XROSubobjectRegistry
Modifier and Type | Method and Description |
---|---|
Subobject |
parseSubobject(int type,
io.netty.buffer.ByteBuf buffer,
boolean mandatory)
Finds parser for given subobject type in the registry.
|
void |
serializeSubobject(Subobject subobject,
io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
|
Subobject parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean mandatory) throws PCEPDeserializerException
type
- subobject type, key in parser registrybuffer
- subobject wrapped in ByteBufmandatory
- XRO specific common fieldPCEPDeserializerException
- if the parsing did not succeedvoid serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
subobject
- to be parsedbuffer
- buffer where the serialized subobject will be parsedCopyright © 2019 OpenDaylight. All rights reserved.