@Deprecated public class InterceptingAsyncClientHttpRequestFactory extends Object implements AsyncClientHttpRequestFactory
AsyncClientHttpRequestFactory
that has support for
AsyncClientHttpRequestInterceptor
s.InterceptingAsyncClientHttpRequest
Constructor and Description |
---|
InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate,
List<AsyncClientHttpRequestInterceptor> interceptors)
Deprecated.
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)
Deprecated.
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, @Nullable 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)
AsyncClientHttpRequestFactory
AsyncClientHttpRequest
for the specified URI
and HTTP method.
The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync()
.
createAsyncRequest
in interface AsyncClientHttpRequestFactory
uri
- the URI to create a request formethod
- the HTTP method to execute