Package | Description |
---|---|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
org.springframework.web.client |
Core package of the client-side web support.
|
Modifier and Type | Class and Description |
---|---|
static class |
RequestEntity.UriTemplateRequestEntity<T>
RequestEntity initialized with a URI template and variables instead of a
URI . |
Modifier and Type | Method and Description |
---|---|
<T> RequestEntity<T> |
RequestEntity.BodyBuilder.body(T body)
Set the body of the request entity and build the RequestEntity.
|
<T> RequestEntity<T> |
RequestEntity.BodyBuilder.body(T body,
Type type)
Set the body and type of the request entity and build the RequestEntity.
|
RequestEntity<Void> |
RequestEntity.HeadersBuilder.build()
Builds the request entity with no body.
|
Modifier and Type | Method and Description |
---|---|
<T> ResponseEntity<T> |
RestOperations.exchange(RequestEntity<?> requestEntity,
Class<T> responseType)
Execute the request specified in the given
RequestEntity and return
the response as ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(RequestEntity<?> entity,
Class<T> responseType) |
<T> ResponseEntity<T> |
RestOperations.exchange(RequestEntity<?> requestEntity,
ParameterizedTypeReference<T> responseType)
Execute the request specified in the given
RequestEntity and return
the response as ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(RequestEntity<?> entity,
ParameterizedTypeReference<T> responseType) |