Package io.vrap.rmf.base.client
Interface ApiHttpClient
- All Superinterfaces:
AsyncApiClient<CompletableFuture<?>>
,AutoCloseable
,CompletableFutureApiClient
,VrapHttpClient
- All Known Subinterfaces:
ContextApiHttpClient
- All Known Implementing Classes:
ApiHttpClientImpl
,CompatClient
,CompatSphereClient.CompatApiHttpClient
,ContextApiHttpClientImpl
,SerializerOnlyApiHttpClient
Interface for an HTTP client accessing the API and mapping to a known output type
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <O> CompletableFuture<ApiHttpResponse<O>>
execute
(ApiHttpRequest request, com.fasterxml.jackson.core.type.TypeReference<O> outputType) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(ApiHttpRequest request, JavaType outputType) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(ApiHttpRequest request, Class<O> outputType) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(ApiHttpRequest request, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(CreateHttpRequestCommand method, com.fasterxml.jackson.core.type.TypeReference<O> outputType) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(CreateHttpRequestCommand method, JavaType outputType) default <T,
O> CompletableFuture<ApiHttpResponse<O>> execute
(CreateHttpRequestCommand method, Class<O> outputType) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(CreateHttpRequestCommand method, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper) default <O> CompletableFuture<ApiHttpResponse<O>>
execute
(HttpRequestCommand<O> method) default <O> ApiHttpResponse<O>
executeBlocking
(CreateHttpRequestCommand method, com.fasterxml.jackson.core.type.TypeReference<O> outputType, Duration timeout) default <O> ApiHttpResponse<O>
executeBlocking
(CreateHttpRequestCommand method, JavaType outputType, Duration timeout) default <O> ApiHttpResponse<O>
executeBlocking
(CreateHttpRequestCommand method, Class<O> outputType, Duration timeout) default <O> ApiHttpResponse<O>
executeBlocking
(CreateHttpRequestCommand method, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper, Duration timeout) static ApiHttpClient
of
(String baseUri, HandlerStack stack) static ApiHttpClient
of
(String baseUri, HandlerStack stack, ResponseSerializer serializer) static ApiHttpClient
of
(URI baseUri, HandlerStack stack) static ApiHttpClient
of
(URI baseUri, HandlerStack stack, ResponseSerializer serializer) default CompletableFuture<ApiHttpResponse<byte[]>>
send
(CreateHttpRequestCommand method) default <T> ApiHttpResponse<byte[]>
sendBlocking
(CreateHttpRequestCommand method, Duration timeout) Methods inherited from interface java.lang.AutoCloseable
close
Methods inherited from interface io.vrap.rmf.base.client.VrapHttpClient
execute
-
Field Details
-
CLOSED_MESSAGE
- See Also:
-
DEFAULT_TIMEOUT
-
-
Method Details
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(ApiHttpRequest request, Class<O> outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(ApiHttpRequest request, com.fasterxml.jackson.core.type.TypeReference<O> outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(ApiHttpRequest request, JavaType outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(ApiHttpRequest request, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
- Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <T,O> CompletableFuture<ApiHttpResponse<O>> execute(CreateHttpRequestCommand method, Class<O> outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(CreateHttpRequestCommand method, JavaType outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(CreateHttpRequestCommand method, com.fasterxml.jackson.core.type.TypeReference<O> outputType) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
execute
default <O> CompletableFuture<ApiHttpResponse<O>> execute(CreateHttpRequestCommand method, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper) - Specified by:
execute
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
execute
in interfaceCompletableFutureApiClient
-
executeBlocking
default <O> ApiHttpResponse<O> executeBlocking(CreateHttpRequestCommand method, Function<ApiHttpResponse<byte[]>, ApiHttpResponse<O>> mapper, Duration timeout) - Specified by:
executeBlocking
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
executeBlocking
in interfaceCompletableFutureApiClient
-
executeBlocking
default <O> ApiHttpResponse<O> executeBlocking(CreateHttpRequestCommand method, Class<O> outputType, Duration timeout) - Specified by:
executeBlocking
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
executeBlocking
in interfaceCompletableFutureApiClient
-
executeBlocking
default <O> ApiHttpResponse<O> executeBlocking(CreateHttpRequestCommand method, JavaType outputType, Duration timeout) - Specified by:
executeBlocking
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
executeBlocking
in interfaceCompletableFutureApiClient
-
executeBlocking
default <O> ApiHttpResponse<O> executeBlocking(CreateHttpRequestCommand method, com.fasterxml.jackson.core.type.TypeReference<O> outputType, Duration timeout) - Specified by:
executeBlocking
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
executeBlocking
in interfaceCompletableFutureApiClient
-
send
- Specified by:
send
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
send
in interfaceCompletableFutureApiClient
-
sendBlocking
- Specified by:
sendBlocking
in interfaceAsyncApiClient<CompletableFuture<?>>
- Specified by:
sendBlocking
in interfaceCompletableFutureApiClient
-
getSerializerService
ResponseSerializer getSerializerService() -
getBaseUri
URI getBaseUri() -
of
-
of
-
of
-
of
-