# Uses of Class
org.springframework.http.HttpEntity

Packages that use HttpEntity
Package
Description
org.springframework.http
Contains a basic abstraction over client/server-side HTTP.
org.springframework.http.client
Contains an abstraction over client-side HTTP.
org.springframework.http.converter
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
org.springframework.web.client
Core package of the client-side web support.

## Uses of HttpEntity in org.springframework.http

Subclasses of HttpEntity in org.springframework.http
Modifier and Type
Class
Description
`class`
`RequestEntity<T>`
Extension of `HttpEntity` that also exposes the HTTP method and the target URL.
`static class`
`RequestEntity.UriTemplateRequestEntity<T>`
RequestEntity initialized with a URI template and variables instead of a `URI`.
`class`
`ResponseEntity<T>`
Extension of `HttpEntity` that adds an `HttpStatusCode` status code.
Fields in org.springframework.http declared as HttpEntity
Modifier and Type
Field
Description
`static final HttpEntity<?>`
HttpEntity.`EMPTY`
An `HttpEntity` instance with a `null` body and `empty headers`.

## Uses of HttpEntity in org.springframework.http.client

Methods in org.springframework.http.client that return types with arguments of type HttpEntity
Modifier and Type
Method
Description
`org.springframework.util.MultiValueMap<String,HttpEntity<?>>`
MultipartBodyBuilder.`build()`
Return a `MultiValueMap` with the configured parts.

## Uses of HttpEntity in org.springframework.http.converter

Methods in org.springframework.http.converter that return HttpEntity
Modifier and Type
Method
Description
`protected HttpEntity<?>`
FormHttpMessageConverter.`getHttpEntity(Object part)`
Return an `HttpEntity` for the given part Object.

## Uses of HttpEntity in org.springframework.web.client

Methods in org.springframework.web.client with parameters of type HttpEntity
Modifier and Type
Method
Description
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)`