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 | 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,
java.lang.reflect.Type type)
Set the body and type of the request entity and build the RequestEntity.
|
RequestEntity<java.lang.Void> |
RequestEntity.HeadersBuilder.build()
Builds the request entity with no body.
|
Modifier and Type | Method and Description |
---|---|
<T> ResponseEntity<T> |
RestOperations.exchange(RequestEntity<?> requestEntity,
java.lang.Class<T> responseType)
Execute the request specified in the given
RequestEntity and return
the response as ResponseEntity . |
<T> ResponseEntity<T> |
RestTemplate.exchange(RequestEntity<?> requestEntity,
java.lang.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<?> requestEntity,
ParameterizedTypeReference<T> responseType) |