public class WsDetector extends Object
WsInfoRequestHandler
.Constructor and Description |
---|
WsDetector(URL url)
Creates a new JSON-RPC 2.0 web service detector.
|
Modifier and Type | Method and Description |
---|---|
WsInfo |
detect()
Detects the JSON-RPC 2.0 web service name and version.
|
com.thetransactioncompany.jsonrpc2.client.JSONRPC2Session |
getSession()
Gets the client session associated with this JSON-RPC 2.0 web service
detected.
|
public WsDetector(URL url)
url
- The web service HTTP(S) URL. Must not be null
.public com.thetransactioncompany.jsonrpc2.client.JSONRPC2Session getSession()
public WsInfo detect() throws Exception
ws.getName
and ws.getVersion
calls, as implemented by WsInfoRequestHandler
.Exception
- If the web service name and version couldn't be
detected, for example due to a network exception.Copyright © 2015 Connect2id. All Rights Reserved.