Module io.helidon.webclient.jsonrpc
Package io.helidon.webclient.jsonrpc
Interface JsonRpcClientResponse
- All Superinterfaces:
AutoCloseable,io.helidon.webclient.api.HttpClientResponse
public interface JsonRpcClientResponse
extends io.helidon.webclient.api.HttpClientResponse
A representation of a JSON-RPC client response.
-
Method Summary
Modifier and TypeMethodDescriptionGet a complete response representation as a JSON object.Optional<io.helidon.jsonrpc.core.JsonRpcError> error()Get an error set on this response.io.helidon.http.ClientResponseHeadersheaders()io.helidon.webclient.api.ClientUriOptional<io.helidon.jsonrpc.core.JsonRpcResult> result()Get the result in this response.rpcId()Get the JSON-RPC ID set on this response.io.helidon.http.Statusstatus()io.helidon.http.ClientResponseTrailerstrailers()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<io.helidon.jsonrpc.core.JsonRpcResult> result()Get the result in this response.- Returns:
- the optional response result
-
error
Optional<io.helidon.jsonrpc.core.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
io.helidon.http.Status status() -
headers
io.helidon.http.ClientResponseHeaders headers() -
trailers
io.helidon.http.ClientResponseTrailers trailers() -
lastEndpointUri
io.helidon.webclient.api.ClientUri lastEndpointUri()
-