ExchangeFilterFunction@Deprecated
public interface AsyncClientHttpRequestInterceptor
AsyncRestTemplate as to modify
the outgoing HttpRequest and/or register to modify the incoming
ClientHttpResponse with help of a
ListenableFutureAdapter.
The main entry point for interceptors is intercept(org.springframework.http.HttpRequest, byte[], org.springframework.http.client.AsyncClientHttpRequestExecution).
AsyncRestTemplate,
InterceptingAsyncHttpAccessor| Modifier and Type | Method and Description |
|---|---|
ListenableFuture<ClientHttpResponse> |
intercept(HttpRequest request,
byte[] body,
AsyncClientHttpRequestExecution execution)
Deprecated.
Intercept the given request, and return a response future.
|
ListenableFuture<ClientHttpResponse> intercept(HttpRequest request, byte[] body, AsyncClientHttpRequestExecution execution) throws java.io.IOException
AsyncClientHttpRequestExecution allows the interceptor to pass on
the request to the next entity in the chain.
An implementation might follow this pattern:
ClientHttpRequestExecutionListenableFutureAdapter.request - the request, containing method, URI, and headersbody - the body of the requestexecution - the request executionjava.io.IOException - in case of I/O errors