Interface RROSubobjectRegistry
-
- All Known Implementing Classes:
SimpleRROSubobjectRegistry
public interface RROSubobjectRegistry
Reported Route Object Registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subobject
parseSubobject(int type, io.netty.buffer.ByteBuf buffer)
Finds parser for given subobject type in the registry.void
serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject.
-
-
-
Method Detail
-
parseSubobject
Subobject parseSubobject(int type, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
Finds parser for given subobject type in the registry. Delegates parsing to found parser.- Parameters:
type
- subobject type, key in parser registrybuffer
- subobject wrapped in ByteBuf- Returns:
- null if the parser for this subobject could not be found otherwise returns parser
- Throws:
PCEPDeserializerException
- if the parsing did not succeed
-
serializeSubobject
void serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
Find serializer for given subobject. Delegates parsing to found serializer.- Parameters:
subobject
- to be parsedbuffer
- buffer where the serialized subobject will be parsed
-
-