Class InterceptingAsyncHttpAccessor
- java.lang.Object
- org.springframework.http.client.support.AsyncHttpAccessor
- org.springframework.http.client.support.InterceptingAsyncHttpAccessor
- Direct Known Subclasses:
AsyncRestTemplate
public abstract class InterceptingAsyncHttpAccessor extends AsyncHttpAccessor
The 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()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncClientHttpRequestFactorygetAsyncRequestFactory()Return the request factory that this accessor uses for obtainingHttpRequests.List<AsyncClientHttpRequestInterceptor>getInterceptors()Return the request interceptor that this accessor uses.voidsetInterceptors(List<AsyncClientHttpRequestInterceptor> interceptors)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()
Method Detail
setInterceptors
public void setInterceptors(List<AsyncClientHttpRequestInterceptor> interceptors)
Set the request interceptors that this accessor should use.- Parameters:
interceptors- the list of interceptors
getInterceptors
public List<AsyncClientHttpRequestInterceptor> getInterceptors()
Return the request interceptor that this accessor uses.
getAsyncRequestFactory
public AsyncClientHttpRequestFactory getAsyncRequestFactory()
Description copied from class:AsyncHttpAccessorReturn the request factory that this accessor uses for obtainingHttpRequests.- Overrides:
getAsyncRequestFactoryin classAsyncHttpAccessor