HttpExchangeAdapter that enables an HttpServiceProxyFactory
to use RestClient for request execution.
Use static factory methods in this class to create an
HttpServiceProxyFactory configured with the given RestClient.
| Modifier and Type | Field and Description |
|---|---|
| private final RestClient |
| Access | Constructor and Description |
|---|---|
| private |
| restClient | back to summary |
|---|---|
| private final RestClient restClient | |
| RestClientAdapter | back to summary |
|---|---|
| private RestClientAdapter(RestClient restClient) | |
| create | back to summary |
|---|---|
| public static RestClientAdapter create(RestClient restClient) Create a | |
| exchange | back to summary |
|---|---|
| public void exchange(HttpRequestValues requestValues) 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 RestClient. | |
| supportsRequestAttributes | back to summary |
|---|---|
| public boolean supportsRequestAttributes() Implements org. Doc from org. Whether the underlying client supports use of request attributes.
| |