RE - Concrete response entity typeRP - Concrete response payload typeRP - Concrete response stream typeRL - Concrete response payload as list typeRL - Concrete response as URI typepublic static interface RestClientOperations.InvocationOperations<RE,RP,RS,RL,RU>
| Modifier and Type | Method and Description |
|---|---|
RE |
delete()
Invoke the request using
DELETE method and receive a response back. |
<T> RE |
delete(Class<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
<T> RE |
delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
<T> RP |
deleteForEntity(Class<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload back. |
<T> RP |
deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload of given generic
type back. |
<T> RE |
get(Class<T> responseType)
Invoke the request using
GET method and receive a response back. |
<T> RE |
get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
<T> RL |
getAsList(Class<T> responseType)
Convenience method to invoke the request using
GET method and receive a response entity payload
of List type back. |
<T> RP |
getForEntity(Class<T> responseType)
Invoke the request using
GET method and receive the response entity payload back. |
<T> RP |
getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and receive the response entity payload of given generic
type back. |
RS |
getForStream()
Invoke the request using
GET method and receive the response entity back as a stream. |
RE |
head()
Invoke the request using
HEAD method and receive a response back. |
<T,R> RE |
invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back.
|
<T,R> RP |
invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<T,R> RE |
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. |
RE |
options()
Invoke the request using
OPTIONS method and receive a response back. |
<T> RE |
options(Class<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
<T> RE |
options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
<T> RP |
optionsForEntity(Class<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload back. |
<T> RP |
optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload of given generic
type back. |
RE |
patch(RequestEntity<?> entity)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
<T> RE |
patch(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
<T> RE |
patch(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
<T> RP |
patchForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
the response entity payload back. |
<T> RP |
patchForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
the response entity payload back. |
RE |
post(RequestEntity<?> entity)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
<T> RE |
post(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
<T> RE |
post(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
<T> RP |
postForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
<T> RP |
postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
RU |
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. |
RE |
put(RequestEntity<?> entity)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
<T> RE |
put(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
<T> RE |
put(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
<T> RP |
putForEntity(RequestEntity<?> entity,
Class<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive
the response entity payload back. |
<T> RP |
putForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request entity payload and
receive the response payload back. |
RE |
trace()
Invoke the request using
TRACE method and receive a response back. |
<T> RE |
trace(Class<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
<T> RE |
trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
<T> RP |
traceForEntity(Class<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload back. |
<T> RP |
traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload of given generic
type back. |
<T,R> RE invoke(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
The response payload is processed and possibly converted by concrete client implementation.
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)<T,R> RE invokeForSuccess(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
2xx)
status code.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 code<T,R> RP invokeForEntity(HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType)
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 code<T> RE get(Class<T> responseType)
GET method and receive a response back.T - Response typeresponseType - Expected response payload typeHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE get(ResponseType<T> responseType)
GET method and receive a response back.T - Response typeresponseType - Expected response payload typeHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RP getForEntity(Class<T> responseType)
GET method and receive the response entity payload back.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 code<T> RP getForEntity(ResponseType<T> responseType)
GET method and receive the response entity payload of given generic
type back.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 codeRS getForStream()
GET method and receive the response entity back as a stream.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 code<T> RL getAsList(Class<T> responseType)
GET method and receive a response entity payload
of List type back.T - Response entity typeresponseType - Expected 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 codeRE 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.
entity - Request payloadHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE post(RequestEntity<?> entity, Class<T> responseType)
POST method with given entity request payload and receive
a response back.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)<T> RE post(RequestEntity<?> entity, ResponseType<T> responseType)
POST method with given entity request payload and receive
a response back.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)<T> RP postForEntity(RequestEntity<?> entity, Class<T> responseType)
POST method with given entity request payload and receive
the response payload back.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 code<T> RP postForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
POST method with given entity request payload and receive
the response payload back.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 codeRU postForLocation(RequestEntity<?> entity)
POST method with given entity request payload and receive
the value of the LOCATION header back, if present.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 codeRE 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.
entity - Request payloadHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE put(RequestEntity<?> entity, Class<T> responseType)
PUT method with given entity request payload and receive a
response back.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)<T> RE put(RequestEntity<?> entity, ResponseType<T> responseType)
PUT method with given entity request payload and receive a
response back.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)<T> RP putForEntity(RequestEntity<?> entity, Class<T> responseType)
PUT method with given entity request payload and receive
the response entity payload back.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 code<T> RP putForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PUT method with given entity request entity payload and
receive the response payload back.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 codeRE 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.
entity - Request payloadHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE patch(RequestEntity<?> entity, Class<T> responseType)
PATCH method with given entity request payload and receive
a response back.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 code<T> RE patch(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH method with given entity request payload and receive
a response back.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 code<T> RP patchForEntity(RequestEntity<?> entity, Class<T> responseType)
PATCH method with given entity request payload and receive
the response entity payload back.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 code<T> RP patchForEntity(RequestEntity<?> entity, ResponseType<T> responseType)
PATCH method with given entity request payload and receive
the response entity payload back.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 codeRE 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.
HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel)<T> RE delete(Class<T> responseType)
DELETE method and receive a response back.T - Response typeresponseType - Expected response payload typeHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE delete(ResponseType<T> responseType)
DELETE method and receive a response back.T - Response 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)<T> RP deleteForEntity(Class<T> responseType)
DELETE method and receive the response entity payload back.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 code<T> RP deleteForEntity(ResponseType<T> responseType)
DELETE method and receive the response entity payload of given generic
type back.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 codeRE 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.
HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel)<T> RE options(Class<T> responseType)
OPTIONS method and receive a response back.T - Response typeresponseType - Expected response payload typeHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE options(ResponseType<T> responseType)
OPTIONS method and receive a response back.T - Response 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)<T> RP optionsForEntity(Class<T> responseType)
OPTIONS method and receive the response entity payload back.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 code<T> RP optionsForEntity(ResponseType<T> responseType)
OPTIONS method and receive the response entity payload of given generic
type back.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 codeRE 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.
HttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE trace(Class<T> responseType)
TRACE method and receive a response back.T - Response typeresponseType - Expected response payload typeHttpClientInvocationException - Internal invocation failure (for example, an I/O error on communication
channel or expected and actual payload type mismatch)<T> RE trace(ResponseType<T> responseType)
TRACE method and receive a response back.T - Response 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)<T> RP traceForEntity(Class<T> responseType)
TRACE method and receive the response entity payload back.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 code<T> RP traceForEntity(ResponseType<T> responseType)
TRACE method and receive the response entity payload of given generic
type back.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 codeRE head()
HEAD method and receive a response back.HttpClientInvocationException - 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.