- All Superinterfaces:
RuntimeType.Api<JsonRpcClientConfig>
A JSON-RPC client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Protocol
<JsonRpcClient, JsonRpcClientProtocolConfig> Protocol to use to get an instance of JSON-RPC specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.static final String
Protocol ID constant for JSON-RPC. -
Method Summary
Modifier and TypeMethodDescriptiondefault JsonRpcClientBatchRequest
batch()
Create a JSON-RPC batch request.Create a JSON-RPC batch request and set the path related to the base URI.static JsonRpcClientConfig.Builder
builder()
A new fluent API builder to customize client setup.static JsonRpcClient
create()
Create a new instance with default configuration.static JsonRpcClient
create
(JsonRpcClientConfig clientConfig) Create a new instance with custom configuration.static JsonRpcClient
create
(Consumer<JsonRpcClientConfig.Builder> consumer) Create a new instance customizing its configuration.Create a newJsonRpcClientRequest
given a JSON-RPC method.Methods inherited from interface io.helidon.builder.api.RuntimeType.Api
prototype
-
Field Details
-
PROTOCOL_ID
Protocol ID constant for JSON-RPC.- See Also:
-
PROTOCOL
Protocol to use to get an instance of JSON-RPC specific client fromWebClient.client(io.helidon.webclient.spi.Protocol)
.
-
-
Method Details
-
builder
A new fluent API builder to customize client setup.- Returns:
- a new builder
-
create
Create a new instance with custom configuration.- Parameters:
clientConfig
- JSON-RPC client configuration- Returns:
- a new JSON-RPC client
-
create
Create a new instance customizing its configuration.- Parameters:
consumer
- JSON-RPC client configuration- Returns:
- a new JSON-RPC client
-
create
Create a new instance with default configuration.- Returns:
- a new JSON-RPC client
-
rpcMethod
Create a newJsonRpcClientRequest
given a JSON-RPC method.- Parameters:
method
- the method- Returns:
- a new JSON-RPC request
-
batch
Create a JSON-RPC batch request.- Returns:
- new batch request
-
batch
Create a JSON-RPC batch request and set the path related to the base URI.- Parameters:
path
- the path- Returns:
- new batch request
-