Class WsDetector

    • Constructor Detail

      • WsDetector

        public WsDetector​(URL url)
        Creates a new JSON-RPC 2.0 web service detector.
        Parameters:
        url - The web service HTTP(S) URL. Must not be null.
    • Method Detail

      • getSession

        public com.thetransactioncompany.jsonrpc2.client.JSONRPC2Session getSession()
        Gets the client session associated with this JSON-RPC 2.0 web service detected.
        Returns:
        The JSON-RPC 2.0 client session.
      • detect

        public WsInfo detect()
                      throws Exception
        Detects the JSON-RPC 2.0 web service name and version. The target web service must handle ws.getName and ws.getVersion calls, as implemented by WsInfoRequestHandler.
        Returns:
        The reported web service name and version.
        Throws:
        Exception - If the web service name and version couldn't be detected, for example due to a network exception.