| Package | Description |
|---|---|
| com.holonplatform.async.http | |
| com.holonplatform.async.http.internal | |
| com.holonplatform.http.rest |
| Modifier and Type | Method and Description |
|---|---|
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and asynchronously receive the response entity payload of
given generic type back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.get(ResponseType<T> responseType)
Invoke the request using
GET method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and asynchronously receive the response entity payload of
given generic type back. |
<T,R> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and asynchronously receive a response back.
|
<T,R> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and asynchronously receive back the response content entity.
|
<T,R> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and asynchronously receive a response back only if the response has a success
(
2xx) status code. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive the response entity payload
of given generic type back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.patch(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.patchForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and
asynchronously receive the response entity payload back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.post(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and
asynchronously receive the response payload back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.put(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.putForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request entity payload and
asynchronously receive the response payload back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
AsyncRestClient.AsyncInvocation.traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and asynchronously receive the response entity payload of
given generic type back. |
| Modifier and Type | Method and Description |
|---|---|
<T,R> CompletionStage<ResponseEntity<T>> |
AsyncInvoker.invoke(AsyncRestClient.AsyncRequestDefinition requestDefinition,
HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType,
boolean onlySuccessfulStatusCode)
Invoke a request asynchronously using current given
request definition. |
<T,R> CompletionStage<ResponseEntity<T>> |
DefaultAsyncRequestDefinition.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType) |
<T,R> CompletionStage<Optional<T>> |
DefaultAsyncRequestDefinition.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType) |
<T,R> CompletionStage<ResponseEntity<T>> |
DefaultAsyncRequestDefinition.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ResponseType<T> |
ResponseType.of(Class<?> type,
Class<?> rawType)
Build a ResponseType using given a parameterized type.
|
static <T> ResponseType<T> |
ResponseType.of(Class<T> type)
Build a ResponseType using given simple type.
|
| Modifier and Type | Method and Description |
|---|---|
<E> Optional<E> |
ResponseEntity.as(ResponseType<E> entityType)
Read the message entity as an instance of specified type, using a
ResponseType representation to allow
generic types support. |
default <T> ResponseEntity<T> |
RestClient.Invocation.delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
<T> RE |
RestClientOperations.InvocationOperations.delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload of given generic
type back. |
<T> RP |
RestClientOperations.InvocationOperations.deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload of given generic
type back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
<T> RE |
RestClientOperations.InvocationOperations.get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and receive the response entity payload of given generic
type back. |
<T> RP |
RestClientOperations.InvocationOperations.getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and receive the response entity payload of given generic
type back. |
<T,R> ResponseEntity<T> |
RestClient.Invocation.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back.
|
<T,R> RE |
RestClientOperations.InvocationOperations.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back.
|
<T,R> Optional<T> |
RestClient.Invocation.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<T,R> RP |
RestClientOperations.InvocationOperations.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<T,R> ResponseEntity<T> |
RestClient.Invocation.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back only if the response has a success (
2xx)
status code. |
<T,R> RE |
RestClientOperations.InvocationOperations.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back only if the response has a success (
2xx)
status code. |
default <T> ResponseEntity<T> |
RestClient.Invocation.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
<T> RE |
RestClientOperations.InvocationOperations.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload of given generic
type back. |
<T> RP |
RestClientOperations.InvocationOperations.optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload of given generic
type back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.patch(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
<T> RE |
RestClientOperations.InvocationOperations.patch(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
default <T> Optional<T> |
RestClient.Invocation.patchForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
the response entity payload back. |
<T> RP |
RestClientOperations.InvocationOperations.patchForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
the response entity payload back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.post(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
<T> RE |
RestClientOperations.InvocationOperations.post(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
default <T> Optional<T> |
RestClient.Invocation.postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
<T> RP |
RestClientOperations.InvocationOperations.postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.put(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
<T> RE |
RestClientOperations.InvocationOperations.put(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
default <T> Optional<T> |
RestClient.Invocation.putForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request entity payload and
receive the response payload back. |
<T> RP |
RestClientOperations.InvocationOperations.putForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request entity payload and
receive the response payload back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
<T> RE |
RestClientOperations.InvocationOperations.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload of given generic
type back. |
<T> RP |
RestClientOperations.InvocationOperations.traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload of given generic
type back. |
Copyright © 2019 The Holon Platform. All rights reserved.