Interface ObjectRegistry

    • Method Detail

      • parseObject

        Object parseObject​(int objectClass,
                           int objectType,
                           ObjectHeader header,
                           io.netty.buffer.ByteBuf buffer)
                    throws PCEPDeserializerException
        Finds parser for given object type and class in the registry. Delegates parsing to found parser.
        Parameters:
        objectClass - object class
        objectType - object type
        header - ObjectHeader
        buffer - object wrapped in ByteBuf
        Returns:
        null if the parser for this object could not be found
        Throws:
        PCEPDeserializerException - if the parsing did not succeed
      • serializeObject

        void serializeObject​(Object object,
                             io.netty.buffer.ByteBuf buffer)
        Find serializer for given object. Delegates parsing to found serializer.
        Parameters:
        object - to be parsed
        buffer - ByteBuf wrapped around bytes representing given object