HttpExchangeAdapter that enables an HttpServiceProxyFactory
to use RestTemplate for request execution.
Use static factory methods in this class to create an
HttpServiceProxyFactory configured with the given RestTemplate.
| Modifier and Type | Field and Description |
|---|---|
| private final RestTemplate |
| Access | Constructor and Description |
|---|---|
| private |
| restTemplate | back to summary |
|---|---|
| private final RestTemplate restTemplate | |
| RestTemplateAdapter | back to summary |
|---|---|
| private RestTemplateAdapter(RestTemplate restTemplate) | |
| create | back to summary |
|---|---|
| public static RestTemplateAdapter create(RestTemplate restTemplate) Create a | |
| exchange | back to summary |
|---|---|
| public void exchange(HttpRequestValues values) Implements org. Doc from org. Perform the given request, and release the response content, if any.
| |
| exchangeForBodilessEntity | back to summary |
|---|---|
| public ResponseEntity Implements org. Doc from org. Variant of
| |
| exchangeForBody | back to summary |
|---|---|
| public <T> T exchangeForBody(HttpRequestValues values, ParameterizedTypeReference<T> bodyType) Implements org. Doc from org. Perform the given request and decode the response content to the given type.
| |
| exchangeForEntity | back to summary |
|---|---|
| public <T> ResponseEntity Implements org. Doc from org. Variant of
| |
| exchangeForHeaders | back to summary |
|---|---|
| public HttpHeaders exchangeForHeaders(HttpRequestValues values) Implements org. Doc from org. Perform the given request, release the response content, and return the response headers.
| |
| newRequest | back to summary |
|---|---|
| private RequestEntity | |
| supportsRequestAttributes | back to summary |
|---|---|
| public boolean supportsRequestAttributes() Implements org. Doc from org. Whether the underlying client supports use of request attributes.
| |