Interface LabelRegistry

All Known Implementing Classes:
SimpleLabelRegistry

public interface LabelRegistry
  • Method Summary

    Modifier and Type
    Method
    Description
    parseLabel(int ctype, io.netty.buffer.ByteBuf buffer)
    Finds parser for given label C-type in the registry.
    void
    serializeLabel(boolean unidirectional, boolean global, LabelType label, io.netty.buffer.ByteBuf buffer)
    Find serializer for given label.
  • Method Details

    • parseLabel

      LabelType parseLabel(int ctype, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
      Finds parser for given label C-type in the registry. Delegates parsing to found parser.
      Parameters:
      ctype - label type, key in parser registry
      buffer - label wrapped in ByteBuf
      Returns:
      null if the parser for this label could not be found
      Throws:
      PCEPDeserializerException - if the parsing did not succeed
    • serializeLabel

      void serializeLabel(boolean unidirectional, boolean global, LabelType label, io.netty.buffer.ByteBuf buffer)
      Find serializer for given label. Delegates parsing to found serializer.
      Parameters:
      unidirectional - label common header flag
      global - label commom header flag
      label - to be parsed
      buffer - buffer where the serialized label will be parsed