Class SimpleRROSubobjectRegistry

All Implemented Interfaces:

public final class SimpleRROSubobjectRegistry extends Object implements RROSubobjectRegistry
  • Constructor Details

    • SimpleRROSubobjectRegistry

      public SimpleRROSubobjectRegistry()
  • Method Details

    • registerSubobjectParser

      public org.opendaylight.yangtools.concepts.Registration registerSubobjectParser(int subobjectType, RROSubobjectParser parser)
    • registerSubobjectSerializer

      public org.opendaylight.yangtools.concepts.Registration registerSubobjectSerializer(Class<? extends SubobjectType> subobjectClass, RROSubobjectSerializer serializer)
    • parseSubobject

      public SubobjectContainer parseSubobject(int type, io.netty.buffer.ByteBuf buffer) throws RSVPParsingException
      Description copied from interface: RROSubobjectRegistry
      Finds parser for given subobject type in the registry. Delegates parsing to found parser.
      Specified by:
      parseSubobject in interface RROSubobjectRegistry
      type - subobject type, key in parser registry
      buffer - subobject wrapped in ByteBuf
      null if the parser for this subobject could not be found otherwise returns parser
      RSVPParsingException - if the parsing did not succeed
    • serializeSubobject

      public void serializeSubobject(SubobjectContainer subobject, io.netty.buffer.ByteBuf buffer)
      Description copied from interface: RROSubobjectRegistry
      Find serializer for given subobject. Delegates parsing to found serializer.
      Specified by:
      serializeSubobject in interface RROSubobjectRegistry
      subobject - to be parsed
      buffer - buffer where the serialized subobject will be parsed