RpcResponseDeserializerImpl
public interface RpcResponseDeserializer
RpcResponse
class, as well as parsing the appropriate RpcException
.Modifier and Type | Method | Description |
---|---|---|
<R extends RpcResponse> |
deserialize(String response,
Class<R> responseClass) |
Deserializes the raw response string given from the node into the appropriate
RpcResponse object, or
throws the relevant RpcException exception if an error is returned. |
<R extends RpcResponse> R deserialize(String response, Class<R> responseClass) throws RpcException
RpcResponse
object, or
throws the relevant RpcException
exception if an error is returned.R
- the response classresponse
- the raw response data sent from the noderesponseClass
- the expected response class to populate the data intoRpcException
- if an exception occurs during parsing, or if an error is returned by the nodeCopyright © 2020. All rights reserved.