Class SimpleEROSubobjectRegistry
java.lang.Object
org.opendaylight.protocol.rsvp.parser.spi.pojo.SimpleEROSubobjectRegistry
- All Implemented Interfaces:
EROSubobjectRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean loose) Finds parser for given subobject type in the registry.org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectParser(int subobjectType, EROSubobjectParser parser) org.opendaylight.yangtools.concepts.RegistrationregisterSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, EROSubobjectSerializer serializer) voidserializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer) Find serializer for given subobject.
-
Constructor Details
-
SimpleEROSubobjectRegistry
public SimpleEROSubobjectRegistry()
-
-
Method Details
-
registerSubobjectParser
public org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, EROSubobjectParser parser) -
registerSubobjectSerializer
public org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, EROSubobjectSerializer serializer) -
parseSubobject
public SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer, boolean loose) throws RSVPParsingException Description copied from interface:EROSubobjectRegistryFinds parser for given subobject type in the registry. Delegates parsing to found parser.- Specified by:
parseSubobjectin interfaceEROSubobjectRegistry- Parameters:
type- subobject type, key in parser registrybuffer- subobject wrapped in ByteBufloose- ERO specific common field- Returns:
- null if the parser for this subobject could not be found
- Throws:
RSVPParsingException- if the parsing did not succeed
-
serializeSubobject
Description copied from interface:EROSubobjectRegistryFind serializer for given subobject. Delegates parsing to found serializer.- Specified by:
serializeSubobjectin interfaceEROSubobjectRegistry- Parameters:
subobject- to be parsedbuffer- buffer where the serialized subobject will be parsed
-