Module io.helidon.webclient.jsonrpc
Package io.helidon.webclient.jsonrpc
Interface JsonRpcClientResponse
- All Superinterfaces:
AutoCloseable
,HttpClientResponse
A representation of a JSON-RPC client response.
-
Method Summary
Modifier and TypeMethodDescriptionGet a complete response representation as a JSON object.error()
Get an error set on this response.headers()
Response headers.URI of the last request.result()
Get the result in this response.rpcId()
Get the JSON-RPC ID set on this response.status()
Response status.trailers()
Response trailer headers.Methods inherited from interface io.helidon.webclient.api.HttpClientResponse
as, close, entity, inputStream, source
-
Method Details
-
rpcId
Get the JSON-RPC ID set on this response.- Returns:
- the ID
-
result
Optional<JsonRpcResult> result()Get the result in this response.- Returns:
- the optional response result
-
error
Optional<JsonRpcError> error()Get an error set on this response.- Returns:
- the optional error
-
asJsonObject
JsonObject asJsonObject()Get a complete response representation as a JSON object.- Returns:
- a JSON object that represents the response
-
status
Status status()Response status.- Returns:
- status
-
headers
ClientResponseHeaders headers()Response headers.- Returns:
- headers
-
trailers
ClientResponseTrailers trailers()Response trailer headers. Blocks until trailers are available.- Returns:
- trailers
- Throws:
IllegalStateException
- when invoked before entity is requested
-
lastEndpointUri
ClientUri lastEndpointUri()URI of the last request. (after redirection)- Returns:
- last URI
-