@Deprecated public class InterceptingAsyncClientHttpRequestFactory extends java.lang.Object implements AsyncClientHttpRequestFactory
AsyncClientHttpRequestFactory
that has support for
AsyncClientHttpRequestInterceptors
.InterceptingAsyncClientHttpRequest
Constructor and Description |
---|
InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate,
java.util.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(java.net.URI uri,
HttpMethod method)
Deprecated.
Create a new asynchronous
AsyncClientHttpRequest for the specified URI
and HTTP method. |
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, @Nullable java.util.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(java.net.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