Class InterceptingAsyncHttpAccessor
- java.lang.Object
- org.springframework.http.client.support.AsyncHttpAccessor
- org.springframework.http.client.support.InterceptingAsyncHttpAccessor
- Direct Known Subclasses:
AsyncRestTemplate
@Deprecated public abstract class InterceptingAsyncHttpAccessor extends AsyncHttpAccessor
Deprecated.as of Spring 5.0, with no direct replacementThe HTTP accessor that extends the baseAsyncHttpAccessorwith request intercepting functionality.- Since:
- 4.3
- Author:
- Jakub Narloch, Rossen Stoyanchev
Field Summary
Fields inherited from class org.springframework.http.client.support.AsyncHttpAccessor
logger
Constructor Summary
Constructors Constructor Description InterceptingAsyncHttpAccessor()Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AsyncClientHttpRequestFactorygetAsyncRequestFactory()Deprecated.Return the request factory that this accessor uses for obtainingHttpRequests.List<AsyncClientHttpRequestInterceptor>getInterceptors()Deprecated.Return the request interceptor that this accessor uses.voidsetInterceptors(List<AsyncClientHttpRequestInterceptor> interceptors)Deprecated.Set the request interceptors that this accessor should use.Methods inherited from class org.springframework.http.client.support.AsyncHttpAccessor
createAsyncRequest, setAsyncRequestFactory
Constructor Detail
InterceptingAsyncHttpAccessor
public InterceptingAsyncHttpAccessor()
Deprecated.
Method Detail
setInterceptors
public void setInterceptors(List<AsyncClientHttpRequestInterceptor> interceptors)
Deprecated.Set the request interceptors that this accessor should use.- Parameters:
interceptors- the list of interceptors
getInterceptors
public List<AsyncClientHttpRequestInterceptor> getInterceptors()
Deprecated.Return the request interceptor that this accessor uses.
getAsyncRequestFactory
public AsyncClientHttpRequestFactory getAsyncRequestFactory()
Deprecated.Description copied from class:AsyncHttpAccessorReturn the request factory that this accessor uses for obtainingHttpRequests.- Overrides:
getAsyncRequestFactoryin classAsyncHttpAccessor