| Package | Description |
|---|---|
| com.holonplatform.http.rest |
| Modifier and Type | Method and Description |
|---|---|
static <T> ResponseType<T> |
ResponseType.of(Class<?> type,
Class<?> rawType)
Build a ResponseType using given a parameterized type.
|
static <T> ResponseType<T> |
ResponseType.of(Class<T> type)
Build a ResponseType using given simple type.
|
| Modifier and Type | Method and Description |
|---|---|
<E> Optional<E> |
ResponseEntity.as(ResponseType<E> entityType)
Read the message entity as an instance of specified type, using a
ResponseType representation to allow
generic types support. |
default <T> ResponseEntity<T> |
RestClient.Invocation.delete(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.deleteForEntity(ResponseType<T> responseType)
Invoke the request using
DELETE method and receive the response entity payload of given generic
type back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.get(ResponseType<T> responseType)
Invoke the request using
GET method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.getForEntity(ResponseType<T> responseType)
Invoke the request using
GET method and receive the response entity payload of given generic
type back. |
<T,R> ResponseEntity<T> |
RestClient.Invocation.invoke(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back.
|
<T,R> ResponseEntity<T> |
RestClient.Invoker.invoke(RestClient.RequestDefinition requestDefinition,
HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType,
boolean onlySuccessfulStatusCode)
Invoke request using current given
request definition. |
<T,R> Optional<T> |
RestClient.Invocation.invokeForEntity(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive back the response content entity.
|
<T,R> ResponseEntity<T> |
RestClient.Invocation.invokeForSuccess(HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType)
Invoke the request and receive a response back only if the response has a success (
2xx)
status code. |
default <T> ResponseEntity<T> |
RestClient.Invocation.options(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.optionsForEntity(ResponseType<T> responseType)
Invoke the request using
OPTIONS method and receive the response entity payload of given generic
type back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.patch(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PATCH method with given entity request payload and receive
a response back. |
default <T> Optional<T> |
RestClient.Invocation.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 <T> ResponseEntity<T> |
RestClient.Invocation.post(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
a response back. |
default <T> Optional<T> |
RestClient.Invocation.postForEntity(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
POST method with given entity request payload and receive
the response payload back. |
default <T> ResponseEntity<T> |
RestClient.Invocation.put(RequestEntity<?> entity,
ResponseType<T> responseType)
Invoke the request using
PUT method with given entity request payload and receive a
response back. |
default <T> Optional<T> |
RestClient.Invocation.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 <T> ResponseEntity<T> |
RestClient.Invocation.trace(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive a response back. |
default <T> Optional<T> |
RestClient.Invocation.traceForEntity(ResponseType<T> responseType)
Invoke the request using
TRACE method and receive the response entity payload of given generic
type back. |
Copyright © 2017 The Holon Platform. All rights reserved.