类 InterceptingAsyncHttpAccessor
- java.lang.Object
- org.springframework.http.client.support.AsyncHttpAccessor
- org.springframework.http.client.support.InterceptingAsyncHttpAccessor
- 直接已知子类:
AsyncRestTemplate
public abstract class InterceptingAsyncHttpAccessor extends AsyncHttpAccessor
The HTTP accessor that extends the baseAsyncHttpAccessorwith request intercepting functionality.- 从以下版本开始:
- 4.3
- 作者:
- Jakub Narloch, Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.http.client.support.AsyncHttpAccessor
logger
构造器概要
构造器 构造器 说明 InterceptingAsyncHttpAccessor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.从类继承的方法 org.springframework.http.client.support.AsyncHttpAccessor
createAsyncRequest, setAsyncRequestFactory
构造器详细资料
InterceptingAsyncHttpAccessor
public InterceptingAsyncHttpAccessor()
方法详细资料
setInterceptors
public void setInterceptors(List<AsyncClientHttpRequestInterceptor> interceptors)
Set the request interceptors that this accessor should use.- 参数:
interceptors- the list of interceptors
getInterceptors
public List<AsyncClientHttpRequestInterceptor> getInterceptors()
Return the request interceptor that this accessor uses.
getAsyncRequestFactory
public AsyncClientHttpRequestFactory getAsyncRequestFactory()
从类复制的说明:AsyncHttpAccessorReturn the request factory that this accessor uses for obtainingHttpRequests.