public static interface RestClient.Invoker
RestClient.RequestDefinition.| Modifier and Type | Method and Description |
|---|---|
<T,R> ResponseEntity<T> |
invoke(RestClient.RequestDefinition requestDefinition,
HttpMethod method,
RequestEntity<R> requestEntity,
ResponseType<T> responseType,
boolean onlySuccessfulStatusCode)
Invoke request using current given
request definition. |
<T,R> ResponseEntity<T> invoke(RestClient.RequestDefinition requestDefinition, HttpMethod method, RequestEntity<R> requestEntity, ResponseType<T> responseType, boolean onlySuccessfulStatusCode)
request definition.T - Response typeR - Request entity typerequestDefinition - Request definitionmethod - Request methodrequestEntity - Request message payloadresponseType - Expected response payload typeonlySuccessfulStatusCode - true to return only 2xx status code response and
throw an UnsuccessfulResponseException otherwise, false to return any status code
responsesResponseEntity object as a result of the request invocationCopyright © 2017 The Holon Platform. All rights reserved.