com.holonplatform.http.rest

## Interface RestClient.Invoker

- Enclosing interface:
    RestClient

      public static interface RestClient.Invoker

  Invoker to perform a client request in order to consume a response using a `RestClient.RequestDefinition`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.

- - ### Method Detail

    - #### invoke

          <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.
      Type Parameters:
        `T` - Response type
        `R` - Request entity type
      Parameters:
        `requestDefinition` - Request definition
        `method` - Request method
        `requestEntity` - Request message payload
        `responseType` - Expected response payload type
        `onlySuccessfulStatusCode` - `true` to return only `2xx` status code response and throw an `UnsuccessfulResponseException` otherwise, `false` to return any status code responses
      Returns:
        `ResponseEntity` object as a result of the request invocation

Copyright © 2017 The Holon Platform. All rights reserved.