Class JsonRpcClientHttpUrlConnection

java.lang.Object
org.consensusj.jsonrpc.JsonRpcClientHttpUrlConnection
All Implemented Interfaces:
AsyncSupport, JsonRpcTransport<JavaType>

JSON-RPC Client using HttpURLConnection formerly namedRpcClient.

This is a concrete class with generic JSON-RPC functionality, it implements the abstract method JsonRpcTransport.sendRequestForResponseAsync(JsonRpcRequest, Type) using HttpURLConnection.

Uses strongly-typed POJOs representing JsonRpcRequest and JsonRpcResponse. The response object uses a parameterized type for the object that is the actual JSON-RPC `result`. Using strong types and Jackson to serialize/deserialize to/from strongly-typed POJO's without using intermediate `Map` or `JsonNode` types.