Package org.springframework.http.client
Class InterceptingAsyncClientHttpRequestFactory
- java.lang.Object
- org.springframework.http.client.InterceptingAsyncClientHttpRequestFactory
- All Implemented Interfaces:
AsyncClientHttpRequestFactory
@Deprecated public class InterceptingAsyncClientHttpRequestFactory extends Object implements AsyncClientHttpRequestFactory
Deprecated.as of Spring 5.0, with no direct replacementWrapper for aAsyncClientHttpRequestFactory
that has support forAsyncClientHttpRequestInterceptors
.- Since:
- 4.3
- Author:
- Jakub Narloch
- See Also:
InterceptingAsyncClientHttpRequest
Constructor Summary
Constructors Constructor Description InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)
Deprecated.Create new instance ofInterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AsyncClientHttpRequest
createAsyncRequest(URI uri, HttpMethod method)
Deprecated.Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.
Constructor Detail
InterceptingAsyncClientHttpRequestFactory
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, @Nullable List<AsyncClientHttpRequestInterceptor> interceptors)
Deprecated.Create new instance ofInterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.- Parameters:
delegate
- the request factory to delegate tointerceptors
- the list of interceptors to use
Method Detail
createAsyncRequest
public AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod method)
Deprecated.Description copied from interface:AsyncClientHttpRequestFactory
Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync()
.- Specified by:
createAsyncRequest
in interfaceAsyncClientHttpRequestFactory
- Parameters:
uri
- the URI to create a request formethod
- the HTTP method to execute- Returns:
- the created request