类 InterceptingAsyncClientHttpRequestFactory
- java.lang.Object
- org.springframework.http.client.InterceptingAsyncClientHttpRequestFactory
- 所有已实现的接口:
AsyncClientHttpRequestFactory
public class InterceptingAsyncClientHttpRequestFactory extends Object implements AsyncClientHttpRequestFactory
Wrapper for aAsyncClientHttpRequestFactory
that has support forAsyncClientHttpRequestInterceptor
s.- 从以下版本开始:
- 4.3
- 作者:
- Jakub Narloch
- 另请参阅:
InterceptingAsyncClientHttpRequest
构造器概要
构造器 构造器 说明 InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)
Create new instance ofInterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AsyncClientHttpRequest
createAsyncRequest(URI uri, HttpMethod method)
Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.
构造器详细资料
InterceptingAsyncClientHttpRequestFactory
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)
Create new instance ofInterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.- 参数:
delegate
- the request factory to delegate tointerceptors
- the list of interceptors to use
方法详细资料
createAsyncRequest
public AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod method)
从接口复制的说明: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()
.- 指定者:
createAsyncRequest
在接口中AsyncClientHttpRequestFactory
- 参数:
uri
- the URI to create a request formethod
- the HTTP method to execute- 返回:
- the created request