Class OptionsParser
- java.lang.Object
-
- com.gurock.smartinspect.connections.options.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 Summary
Constructors Constructor Description OptionsParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(String protocol, String options, OptionsParserListener callback)Parses the options part of a connections string and informs the caller about found options with the supplied callback listener.
-
-
-
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 nulloptions- The options to parse. Not allowed to be nullcallback- 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 nullSmartInspectException- If the options string syntax is invalid- See Also:
OptionsParserListener
-
-