## Uses of Interface
com.holonplatform.http.rest.RequestEntity

- Packages that use RequestEntity
  Package | Description
  --- | ---
  com.holonplatform.http.rest |

- - ### Uses of RequestEntity in com.holonplatform.http.rest

    Fields in com.holonplatform.http.rest declared as RequestEntity
    Modifier and Type | Field and Description
    --- | ---
    `static RequestEntity<Void>` | RequestEntity.`EMPTY` Empty request entity (with no payload and media type)

    Methods in com.holonplatform.http.rest that return RequestEntity
    Modifier and Type | Method and Description
    --- | ---
    `static <T> RequestEntity<T>` | RequestEntity.`build(String mediaType, T payload)` Build a RequestEntity.
    `static RequestEntity<Map<String,List<String>>>` | RequestEntity.`form(Map<String,List<String>> formData)` Build a `MediaType.APPLICATION_FORM_URLENCODED` entity
    `static <T> RequestEntity<T>` | RequestEntity.`json(T payload)` Build a `MediaType.APPLICATION_JSON` entity.
    `static <T> RequestEntity<T>` | RequestEntity.`text(T payload)` Build a `MediaType.TEXT_PLAIN` entity.
    `static <T> RequestEntity<T>` | RequestEntity.`xml(T payload)` Build a `MediaType.APPLICATION_XML` entity.

    Methods in com.holonplatform.http.rest with parameters of type RequestEntity
    Modifier and Type | Method and Description
    --- | ---
    `<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 ResponseEntity<Void>` | RestClient.Invocation.`patch(RequestEntity<?> entity)` Invoke the request using `PATCH` method with given `entity` request payload and receive a response back.
    `default <T> ResponseEntity<T>` | RestClient.Invocation.`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>` | 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, 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>` | 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 ResponseEntity<Void>` | RestClient.Invocation.`post(RequestEntity<?> entity)` Invoke the request using `POST` method with given `entity` request payload and receive a response back.
    `default <T> ResponseEntity<T>` | RestClient.Invocation.`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>` | 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, Class<T> responseType)` Invoke the request using `POST` method with given `entity` request payload and receive the response payload 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 Optional<URI>` | RestClient.Invocation.`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>` | RestClient.Invocation.`put(RequestEntity<?> entity)` Invoke the request using `PUT` method with given `entity` request payload and receive a response back.
    `default <T> ResponseEntity<T>` | RestClient.Invocation.`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>` | 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, 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>` | 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.

Copyright © 2017 The Holon Platform. All rights reserved.