public class InterceptingAsyncClientHttpRequestFactory extends Object implements AsyncClientHttpRequestFactory
AsyncClientHttpRequestFactory that has support for
AsyncClientHttpRequestInterceptors.InterceptingAsyncClientHttpRequest| Constructor and Description |
|---|
InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate,
List<AsyncClientHttpRequestInterceptor> interceptors)
Create new instance of
InterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors. |
| Modifier and Type | Method and Description |
|---|---|
AsyncClientHttpRequest |
createAsyncRequest(URI uri,
HttpMethod method)
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)
InterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.delegate - the request factory to delegate tointerceptors - the list of interceptors to usepublic AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod method)
AsyncClientHttpRequestFactoryAsyncClientHttpRequest for the specified URI
and HTTP method.
The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync().
createAsyncRequest in interface AsyncClientHttpRequestFactoryuri - the URI to create a request formethod - the HTTP method to execute