Class OptionsParser


  • public class OptionsParser
    extends Object
    Responsible for parsing the options part of a SmartInspect connections string. This class offers a single method only, called parse, which is responsible for parsing the options part of a connections string. This method informs the caller about found options with a supplied callback listener.

    This class is not guaranteed to be threadsafe.

    See Also:
    OptionsParserListener
    • Constructor Detail

      • OptionsParser

        public OptionsParser()
    • Method Detail

      • parse

        public void parse​(String protocol,
                          String options,
                          OptionsParserListener callback)
                   throws SmartInspectException
        Parses the options part of a connections string and informs the caller about found options with the supplied callback listener. For information about the correct syntax of the options, please refer to the documentation of the Protocol.setOptions method.

        Parameters:
        protocol - The related protocol. Not allowed to be null
        options - The options to parse. Not allowed to be null
        callback - The callback listener which should be informed about found options. Not allowed to be null
        Throws:
        NullPointerException - If the protocol, options or callback argument is null
        SmartInspectException - If the options string syntax is invalid
        See Also:
        OptionsParserListener