| Package | Description |
|---|---|
| com.holonplatform.async.http | |
| com.holonplatform.async.http.internal | |
| com.holonplatform.http.exceptions | |
| com.holonplatform.http.rest |
| Modifier and Type | Method and Description |
|---|---|
default CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.delete()
Invoke the request using
DELETE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.delete(Class<T> responseType)
Invoke the request asynchronously using the
DELETE method and receive a response back. |
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<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.get(Class<T> responseType)
Invoke the request using
GET method and asynchronously receive a response 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 CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.head()
Invoke the request using
HEAD method and asynchronously receive a response 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<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 CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.options()
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.options(Class<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.patch(RequestEntity<?> entity)
Invoke the request using
PATCH method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.patch(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and
asynchronously receive a response 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 CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.post(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.post(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and
asynchronously receive a response 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 CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.put(RequestEntity<?> entity)
Invoke the request using
PUT method with given entity request payload and
asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.put(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and
asynchronously receive a response 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 CompletionStage<ResponseEntity<Void>> |
AsyncRestClient.AsyncInvocation.trace()
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.trace(Class<T> responseType)
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
AsyncRestClient.AsyncInvocation.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and asynchronously receive a response 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<ResponseEntity<T>> |
DefaultAsyncRequestDefinition.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType) |
| Modifier and Type | Method and Description |
|---|---|
ResponseEntity<?> |
UnsuccessfulResponseException.getResponse()
Get the response entity associated with to exception.
|
| Constructor and Description |
|---|
UnsuccessfulResponseException(ResponseEntity<?> response)
Constructor
|
UnsuccessfulResponseException(ResponseEntity<?> response,
String message)
Constructor with error message
|
| Modifier and Type | Method and Description |
|---|---|
default ResponseEntity<Void> |
RestClient.Invocation.delete()
Invoke the request using
DELETE method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.delete(Class<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.get(Class<T> responseType)
Invoke the request using
GET method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
default ResponseEntity<Void> |
RestClient.Invocation.head()
Invoke the request using
HEAD method and receive a response 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> 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. |
default ResponseEntity<Void> |
RestClient.Invocation.options()
Invoke the request using
OPTIONS method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.options(Class<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default ResponseEntity<Void> |
RestClient.Invocation.patch(RequestEntity<?> entity)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.patch(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response 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. |
default ResponseEntity<Void> |
RestClient.Invocation.post(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.post(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response 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. |
default ResponseEntity<Void> |
RestClient.Invocation.put(RequestEntity<?> entity)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.put(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response 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. |
default ResponseEntity<Void> |
RestClient.Invocation.trace()
Invoke the request using
TRACE method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.trace(Class<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
Copyright © 2019 The Holon Platform. All rights reserved.