public class ConnectionsParser extends Object
This class offers a single method only, called parse, which is responsible for parsing a connections string. This method informs the caller about found protocols and options with a supplied callback listener.
Note: This class is not guaranteed to be threadsafe.
ConnectionsParserListener| Constructor and Description |
|---|
ConnectionsParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(String connections,
ConnectionsParserListener callback)
Parses a connections string.
|
public void parse(String connections, ConnectionsParserListener callback) throws SmartInspectException
This method parses the supplied connections string and informs the caller about found protocols and options with the supplied callback listener.
For information about the correct syntax, please refer to the documentation of the SmartInspect.setConnections method.
connections - The connections string to parse. Not allowed to be null.callback - The callback listener which should be informed about found
protocols and their options. Not allowed to be null.NullPointerException - if the connections or callback argument is null.SmartInspectException - if invalid connections string syntax.ConnectionsParserListenerCopyright © 2023. All rights reserved.