public static interface AsyncRestClient.AsyncInvocation extends RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>
| Modifier and Type | Method and Description |
|---|---|
default CompletionStage<ResponseEntity<Void>> |
delete()
Invoke the request using
DELETE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
delete(Class<T> responseType)
Invoke the request asynchronously using the
DELETE method and receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
deleteForEntity(Class<T> responseType)
Invoke the request using
DELETE method and asynchronously receive the response entity payload
back. |
default <T> CompletionStage<Optional<T>> |
deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and asynchronously receive the response entity payload of
given generic type back. |
default CompletionStage<Void> |
deleteOrFail()
Invoke the request asynchronously using the
DELETE method. |
default <T> CompletionStage<ResponseEntity<T>> |
get(Class<T> responseType)
Invoke the request using
GET method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
get(ResponseType<T> responseType)
Invoke the request using
GET method and asynchronously receive a response back. |
default <T> CompletionStage<List<T>> |
getAsList(Class<T> responseType)
Convenience method to invoke the request using
GET method and asynchronously receive a response
entity payload of List type back. |
default <T> CompletionStage<Optional<T>> |
getForEntity(Class<T> responseType)
Invoke the request using
GET method and asynchronously receive the response entity payload back. |
default <T> CompletionStage<Optional<T>> |
getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and asynchronously receive the response entity payload of
given generic type back. |
default CompletionStage<InputStream> |
getForStream()
Invoke the request using
GET method and asynchronously receive the response entity
InputStream back. |
default CompletionStage<ResponseEntity<Void>> |
head()
Invoke the request using
HEAD method and asynchronously receive a response back. |
<T,R> CompletionStage<ResponseEntity<T>> |
invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and asynchronously receive a response back.
|
<T,R> CompletionStage<Optional<T>> |
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>> |
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>> |
options()
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
options(Class<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
optionsForEntity(Class<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive the response entity payload
back. |
default <T> CompletionStage<Optional<T>> |
optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and asynchronously receive the response entity payload
of given generic type back. |
default CompletionStage<ResponseEntity<Void>> |
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>> |
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>> |
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>> |
patchForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and
asynchronously receive the response entity payload back. |
default <T> CompletionStage<Optional<T>> |
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 CompletionStage<ResponseEntity<Void>> |
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>> |
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>> |
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>> |
postForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and
asynchronously receive the response payload back. |
default <T> CompletionStage<Optional<T>> |
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 CompletionStage<Optional<URI>> |
postForLocation(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and
asynchronously receive the value of the LOCATION header back, if present. |
default CompletionStage<ResponseEntity<Void>> |
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>> |
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>> |
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>> |
putForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and
asynchronously receive the response entity payload back. |
default <T> CompletionStage<Optional<T>> |
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 CompletionStage<ResponseEntity<Void>> |
trace()
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
trace(Class<T> responseType)
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<ResponseEntity<T>> |
trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and asynchronously receive a response back. |
default <T> CompletionStage<Optional<T>> |
traceForEntity(Class<T> responseType)
Invoke the request using
TRACE method and asynchronously receive the response entity payload
back. |
default <T> CompletionStage<Optional<T>> |
traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and asynchronously receive the response entity payload of
given generic type back. |
<T,R> CompletionStage<ResponseEntity<T>> invoke(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
The response payload is processed and possibly converted by concrete client implementation.
invoke in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeR - Request entity typemethod - Request methodrequestEntity - Request entityresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as the result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T,R> CompletionStage<ResponseEntity<T>> invokeForSuccess(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
2xx) status code.invokeForSuccess in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeR - Request entity typemethod - Request methodrequestEntity - Request entityresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status code<T,R> CompletionStage<Optional<T>> invokeForEntity(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
invokeForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeR - Request entity typemethod - Request methodrequestEntity - Request entityresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<ResponseEntity<T>> get(Class<T> responseType)
GET method and asynchronously receive a response back.get in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> get(ResponseType<T> responseType)
GET method and asynchronously receive a response back.get in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> getForEntity(Class<T> responseType)
GET method and asynchronously receive the response entity payload back.getForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> getForEntity(ResponseType<T> responseType)
GET method and asynchronously receive the response entity payload of
given generic type back.getForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Response payload generic type representationCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<InputStream> getForStream()
GET method and asynchronously receive the response entity
InputStream back.getForStream in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>CompletionStage to handle the response payload InputStream, or an empty stream for
empty responsesHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<List<T>> getAsList(Class<T> responseType)
GET method and asynchronously receive a response
entity payload of List type back.getAsList in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Expected List response typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty List if not presentHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> post(RequestEntity<?> entity)
POST method with given entity request payload and
asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
post in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>entity - Request payloadCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> post(RequestEntity<?> entity, Class<T> responseType)
POST method with given entity request payload and
asynchronously receive a response back.post in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> post(RequestEntity<?> entity, ResponseType<T> responseType)
POST method with given entity request payload and
asynchronously receive a response back.post in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> postForEntity(RequestEntity<?> entity, Class<T> responseType)
POST method with given entity request payload and
asynchronously receive the response payload back.postForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> postForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
POST method with given entity request payload and
asynchronously receive the response payload back.postForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<Optional<URI>> postForLocation(RequestEntity<?> entity)
POST method with given entity request payload and
asynchronously receive the value of the LOCATION header back, if present.postForLocation in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>entity - Request payloadCompletionStage to handle the value of the LOCATION header back, if presentHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> put(RequestEntity<?> entity)
PUT method with given entity request payload and
asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
put in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>entity - Request payloadCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> put(RequestEntity<?> entity, Class<T> responseType)
PUT method with given entity request payload and
asynchronously receive a response back.put in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> put(RequestEntity<?> entity, ResponseType<T> responseType)
PUT method with given entity request payload and
asynchronously receive a response back.put in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> putForEntity(RequestEntity<?> entity, Class<T> responseType)
PUT method with given entity request payload and
asynchronously receive the response entity payload back.putForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> putForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PUT method with given entity request entity payload and
asynchronously receive the response payload back.putForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> patch(RequestEntity<?> entity)
PATCH method with given entity request payload and
asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
patch in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>entity - Request payloadCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> patch(RequestEntity<?> entity, Class<T> responseType)
PATCH method with given entity request payload and
asynchronously receive a response back.patch in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<ResponseEntity<T>> patch(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH method with given entity request payload and
asynchronously receive a response back.patch in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> patchForEntity(RequestEntity<?> entity, Class<T> responseType)
PATCH method with given entity request payload and
asynchronously receive the response entity payload back.patchForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> patchForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH method with given entity request payload and
asynchronously receive the response entity payload back.patchForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeentity - Request payloadresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> delete()
DELETE method and asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
delete in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>CompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel)default CompletionStage<Void> deleteOrFail()
DELETE method. If the returned response is not a
success response (i.e. with a 2xx status code), a UnsuccessfulResponseException
is thrown.CompletionStage to handle the responseHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<ResponseEntity<T>> delete(Class<T> responseType)
DELETE method and receive a response back.delete in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> delete(ResponseType<T> responseType)
DELETE method and asynchronously receive a response back.delete in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Response payload generic type representationCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> deleteForEntity(Class<T> responseType)
DELETE method and asynchronously receive the response entity payload
back.deleteForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> deleteForEntity(ResponseType<T> responseType)
DELETE method and asynchronously receive the response entity payload of
given generic type back.deleteForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Response payload generic type representationCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> options()
OPTIONS method and asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
options in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>CompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel)default <T> CompletionStage<ResponseEntity<T>> options(Class<T> responseType)
OPTIONS method and asynchronously receive a response back.options in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> options(ResponseType<T> responseType)
OPTIONS method and asynchronously receive a response back.options in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Response payload generic type representationCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> optionsForEntity(Class<T> responseType)
OPTIONS method and asynchronously receive the response entity payload
back.optionsForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> optionsForEntity(ResponseType<T> responseType)
OPTIONS method and asynchronously receive the response entity payload
of given generic type back.optionsForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Response payload generic type representationCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> trace()
TRACE method and asynchronously receive a response back.
The response type is conventionally of Void type, because no response paylod is expected from this
invocation. Refer to the other post methods to obtain a response payload.
trace in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>CompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> trace(Class<T> responseType)
TRACE method and asynchronously receive a response back.trace in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Expected response payload typeCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<ResponseEntity<T>> trace(ResponseType<T> responseType)
TRACE method and asynchronously receive a response back.trace in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response typeresponseType - Response payload generic type representationCompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)default <T> CompletionStage<Optional<T>> traceForEntity(Class<T> responseType)
TRACE method and asynchronously receive the response entity payload
back.traceForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Expected response payload typeCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault <T> CompletionStage<Optional<T>> traceForEntity(ResponseType<T> responseType)
TRACE method and asynchronously receive the response entity payload of
given generic type back.traceForEntity in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>T - Response entity typeresponseType - Response payload generic type representationCompletionStage to handle the response payload of expected type as the result of the
request invocation, or an empty Optional if not present (empty response entity)HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)UnsuccessfulResponseException - In case the status code of the response returned by the server is not a
successful type status code, i.e. it is not a 2xx status codedefault CompletionStage<ResponseEntity<Void>> head()
HEAD method and asynchronously receive a response back.head in interface RestClientOperations.InvocationOperations<CompletionStage<?>,CompletionStage<?>,CompletionStage<InputStream>,CompletionStage<?>,CompletionStage<Optional<URI>>>CompletionStage to handle the ResponseEntity object as a result of the request
invocationHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)Copyright © 2019 The Holon Platform. All rights reserved.