public static interface RestClient.Invocation extends RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
Modifier and Type | Method and Description |
---|---|
default ResponseEntity<Void> |
delete()
Invoke the request using
DELETE method and receive a response back. |
default <T> ResponseEntity<T> |
delete(Class<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> ResponseEntity<T> |
delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> Optional<T> |
deleteForEntity(Class<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload back. |
default <T> Optional<T> |
deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload of given generic
type back. |
default void |
deleteOrFail()
Invoke the request using
DELETE method. |
default <T> ResponseEntity<T> |
get(Class<T> responseType)
Invoke the request using
GET method and receive a response back. |
default <T> ResponseEntity<T> |
get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
default <T> List<T> |
getAsList(Class<T> responseType)
Convenience method to invoke the request using
GET method and receive a response entity payload
of List type back. |
default <T> Optional<T> |
getForEntity(Class<T> responseType)
Invoke the request using
GET method and receive the response entity payload back. |
default <T> Optional<T> |
getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and receive the response entity payload of given generic
type back. |
default InputStream |
getForStream()
Invoke the request using
GET method and receive the response entity InputStream back. |
default ResponseEntity<Void> |
head()
Invoke the request using
HEAD method and receive a response back. |
<T,R> ResponseEntity<T> |
invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back.
|
<T,R> Optional<T> |
invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<T,R> ResponseEntity<T> |
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> |
options()
Invoke the request using
OPTIONS method and receive a response back. |
default <T> ResponseEntity<T> |
options(Class<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default <T> ResponseEntity<T> |
options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default <T> Optional<T> |
optionsForEntity(Class<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload back. |
default <T> Optional<T> |
optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload of given generic
type back. |
default ResponseEntity<Void> |
patch(RequestEntity<?> entity)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
default <T> ResponseEntity<T> |
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> |
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> |
patchForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
the response entity payload back. |
default <T> Optional<T> |
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 ResponseEntity<Void> |
post(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
default <T> ResponseEntity<T> |
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> |
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> |
postForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
default <T> Optional<T> |
postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
default Optional<URI> |
postForLocation(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and receive
the value of the LOCATION header back, if present. |
default ResponseEntity<Void> |
put(RequestEntity<?> entity)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
default <T> ResponseEntity<T> |
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> |
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> |
putForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive
the response entity payload back. |
default <T> Optional<T> |
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 ResponseEntity<Void> |
trace()
Invoke the request using
TRACE method and receive a response back. |
default <T> ResponseEntity<T> |
trace(Class<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
default <T> ResponseEntity<T> |
trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
default <T> Optional<T> |
traceForEntity(Class<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload back. |
default <T> Optional<T> |
traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload of given generic
type back. |
<T,R> 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeR
- Request entity typemethod
- Request methodrequestEntity
- Request entityresponseType
- Expected response payload typeResponseEntity
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)<T,R> ResponseEntity<T> invokeForSuccess(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
2xx
)
status code.invokeForSuccess
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeR
- Request entity typemethod
- Request methodrequestEntity
- Request entityresponseType
- Expected response payload typeResponseEntity
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> Optional<T> invokeForEntity(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
invokeForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeR
- Request entity typemethod
- Request methodrequestEntity
- Request entityresponseType
- Expected response payload typeHttpClientInvocationException
- 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> ResponseEntity<T> get(Class<T> responseType)
GET
method and receive a response back.get
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> get(ResponseType<T> responseType)
GET
method and receive a response back.get
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Expected response payload typeResponseEntity
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> Optional<T> getForEntity(Class<T> responseType)
GET
method and receive the response entity payload back.getForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> getForEntity(ResponseType<T> responseType)
GET
method and receive the response entity payload of given generic
type back.getForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Response payload generic type representationHttpClientInvocationException
- 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 InputStream getForStream()
GET
method and receive the response entity InputStream
back.getForStream
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
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> List<T> getAsList(Class<T> responseType)
GET
method and receive a response entity payload
of List
type back.getAsList
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Expected List
response typeHttpClientInvocationException
- 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 ResponseEntity<Void> post(RequestEntity<?> entity)
POST
method with given entity
request payload and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
entity
- Request payloadResponseEntity
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> ResponseEntity<T> post(RequestEntity<?> entity, Class<T> responseType)
POST
method with given entity
request payload and receive
a response back.post
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> post(RequestEntity<?> entity, ResponseType<T> responseType)
POST
method with given entity
request payload and receive
a response back.post
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> Optional<T> postForEntity(RequestEntity<?> entity, Class<T> responseType)
POST
method with given entity
request payload and receive
the response payload back.postForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> postForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
POST
method with given entity
request payload and receive
the response payload back.postForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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 Optional<URI> postForLocation(RequestEntity<?> entity)
POST
method with given entity
request payload and receive
the value of the LOCATION
header back, if present.postForLocation
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
entity
- Request payloadLOCATION
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 ResponseEntity<Void> put(RequestEntity<?> entity)
PUT
method with given entity
request payload and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
entity
- Request payloadResponseEntity
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> ResponseEntity<T> put(RequestEntity<?> entity, Class<T> responseType)
PUT
method with given entity
request payload and receive a
response back.put
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> put(RequestEntity<?> entity, ResponseType<T> responseType)
PUT
method with given entity
request payload and receive a
response back.put
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> Optional<T> putForEntity(RequestEntity<?> entity, Class<T> responseType)
PUT
method with given entity
request payload and receive
the response entity payload back.putForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> putForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PUT
method with given entity
request entity payload and
receive the response payload back.putForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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 ResponseEntity<Void> patch(RequestEntity<?> entity)
PATCH
method with given entity
request payload and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
entity
- Request payloadResponseEntity
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> ResponseEntity<T> patch(RequestEntity<?> entity, Class<T> responseType)
PATCH
method with given entity
request payload and receive
a response back.patch
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> patch(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH
method with given entity
request payload and receive
a response back.patch
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeentity
- Request payloadresponseType
- Expected response payload typeResponseEntity
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> Optional<T> patchForEntity(RequestEntity<?> entity, Class<T> responseType)
PATCH
method with given entity
request payload and receive
the response entity payload back.patchForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> patchForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH
method with given entity
request payload and receive
the response entity payload back.patchForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeentity
- Request payloadresponseType
- Expected response payload typeHttpClientInvocationException
- 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 ResponseEntity<Void> delete()
DELETE
method and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
ResponseEntity
object as a result of the request invocationHttpClientInvocationException
- Internal invocation failure (for example, an I/O error on communication
channel)default void deleteOrFail()
DELETE
method. If the returned response is not a success
response (i.e. with a 2xx
status code), a UnsuccessfulResponseException
is thrown.HttpClientInvocationException
- 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> ResponseEntity<T> delete(Class<T> responseType)
DELETE
method and receive a response back.delete
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> delete(ResponseType<T> responseType)
DELETE
method and receive a response back.delete
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Response payload generic type representationResponseEntity
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> Optional<T> deleteForEntity(Class<T> responseType)
DELETE
method and receive the response entity payload back.deleteForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> deleteForEntity(ResponseType<T> responseType)
DELETE
method and receive the response entity payload of given generic
type back.deleteForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Response payload generic type representationHttpClientInvocationException
- 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 ResponseEntity<Void> options()
OPTIONS
method and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
ResponseEntity
object as a result of the request invocationHttpClientInvocationException
- Internal invocation failure (for example, an I/O error on communication
channel)default <T> ResponseEntity<T> options(Class<T> responseType)
OPTIONS
method and receive a response back.options
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> options(ResponseType<T> responseType)
OPTIONS
method and receive a response back.options
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Response payload generic type representationResponseEntity
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> Optional<T> optionsForEntity(Class<T> responseType)
OPTIONS
method and receive the response entity payload back.optionsForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> optionsForEntity(ResponseType<T> responseType)
OPTIONS
method and receive the response entity payload of given generic
type back.optionsForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Response payload generic type representationHttpClientInvocationException
- 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 ResponseEntity<Void> trace()
TRACE
method and 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<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
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> ResponseEntity<T> trace(Class<T> responseType)
TRACE
method and receive a response back.trace
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Expected response payload typeResponseEntity
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> ResponseEntity<T> trace(ResponseType<T> responseType)
TRACE
method and receive a response back.trace
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response typeresponseType
- Response payload generic type representationResponseEntity
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> Optional<T> traceForEntity(Class<T> responseType)
TRACE
method and receive the response entity payload back.traceForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Expected response payload typeHttpClientInvocationException
- 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> Optional<T> traceForEntity(ResponseType<T> responseType)
TRACE
method and receive the response entity payload of given generic
type back.traceForEntity
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
T
- Response entity typeresponseType
- Response payload generic type representationHttpClientInvocationException
- 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 ResponseEntity<Void> head()
HEAD
method and receive a response back.head
in interface RestClientOperations.InvocationOperations<ResponseEntity<?>,Optional<?>,InputStream,List<?>,Optional<URI>>
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.