Package | Description |
---|---|
com.holonplatform.async.http | |
com.holonplatform.http | |
com.holonplatform.http.rest |
Modifier and Type | Method and Description |
---|---|
<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. |
Modifier and Type | Method and Description |
---|---|
static HttpMethod |
HttpMethod.from(String methodName)
Get HttpMethod enum constant matching given
methodName name |
HttpMethod |
HttpRequest.getMethod()
Get the request method
|
static HttpMethod |
HttpMethod.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
HttpMethod.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
<T,R> RE |
RestClientOperations.InvocationOperations.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request 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> RP |
RestClientOperations.InvocationOperations.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<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> 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. |
<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. |
Copyright © 2018 The Holon Platform. All rights reserved.