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 Type
    Method
    Description
    Get a complete response representation as a JSON object.
    Optional<io.helidon.jsonrpc.core.JsonRpcError>
    Get an error set on this response.
    io.helidon.http.ClientResponseHeaders
     
    io.helidon.webclient.api.ClientUri
     
    Optional<io.helidon.jsonrpc.core.JsonRpcResult>
    Get the result in this response.
    Get the JSON-RPC ID set on this response.
    io.helidon.http.Status
     
    io.helidon.http.ClientResponseTrailers
     

    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()