类 InterceptingAsyncClientHttpRequestFactory
- java.lang.Object
- org.springframework.http.client.InterceptingAsyncClientHttpRequestFactory
- 所有已实现的接口:
AsyncClientHttpRequestFactory
@Deprecated public class InterceptingAsyncClientHttpRequestFactory extends Object implements AsyncClientHttpRequestFactory
已过时。as of Spring 5.0, with no direct replacementWrapper for aAsyncClientHttpRequestFactorythat has support forAsyncClientHttpRequestInterceptors.- 从以下版本开始:
- 4.3
- 作者:
- Jakub Narloch
- 另请参阅:
InterceptingAsyncClientHttpRequest
构造器概要
构造器 构造器 说明 InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)已过时。Create new instance ofInterceptingAsyncClientHttpRequestFactorywith delegated request factory and list of interceptors.
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 AsyncClientHttpRequestcreateAsyncRequest(URI uri, HttpMethod method)已过时。Create a new asynchronousAsyncClientHttpRequestfor the specified URI and HTTP method.
构造器详细资料
InterceptingAsyncClientHttpRequestFactory
public InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, @Nullable List<AsyncClientHttpRequestInterceptor> interceptors)
已过时。Create new instance ofInterceptingAsyncClientHttpRequestFactorywith 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)
已过时。从接口复制的说明:AsyncClientHttpRequestFactoryCreate a new asynchronousAsyncClientHttpRequestfor 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