接口的使用
org.springframework.http.client.AsyncClientHttpRequestFactory
使用AsyncClientHttpRequestFactory的程序包 程序包 说明 org.springframework.http.client Contains an abstraction over client-side HTTP.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.test.web.client Contains client-side REST testing support.org.springframework.web.client Core package of the client-side web support.org.springframework.http.client中AsyncClientHttpRequestFactory的使用
实现AsyncClientHttpRequestFactory的org.springframework.http.client中的类 修饰符和类型 类 说明 class
HttpComponentsAsyncClientHttpRequestFactory
已过时。as of Spring 5.0, with no direct replacementclass
InterceptingAsyncClientHttpRequestFactory
已过时。as of Spring 5.0, with no direct replacementclass
Netty4ClientHttpRequestFactory
已过时。as of Spring 5.0, in favor ofReactorClientHttpConnector
class
OkHttp3ClientHttpRequestFactory
ClientHttpRequestFactory
implementation that uses OkHttp 3.x to create requests.class
SimpleClientHttpRequestFactory
ClientHttpRequestFactory
implementation that uses standard JDK facilities.参数类型为AsyncClientHttpRequestFactory的org.springframework.http.client中的构造器 构造器 说明 InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)
已过时。Create new instance ofInterceptingAsyncClientHttpRequestFactory
with delegated request factory and list of interceptors.org.springframework.http.client.support中AsyncClientHttpRequestFactory的使用
返回AsyncClientHttpRequestFactory的org.springframework.http.client.support中的方法 修饰符和类型 方法 说明 AsyncClientHttpRequestFactory
AsyncHttpAccessor. getAsyncRequestFactory()
已过时。Return the request factory that this accessor uses for obtainingHttpRequests
.AsyncClientHttpRequestFactory
InterceptingAsyncHttpAccessor. getAsyncRequestFactory()
已过时。参数类型为AsyncClientHttpRequestFactory的org.springframework.http.client.support中的方法 修饰符和类型 方法 说明 void
AsyncHttpAccessor. setAsyncRequestFactory(AsyncClientHttpRequestFactory asyncRequestFactory)
已过时。Set the request factory that this accessor uses for obtainingHttpRequests
.org.springframework.test.web.client中AsyncClientHttpRequestFactory的使用
实现AsyncClientHttpRequestFactory的org.springframework.test.web.client中的类 修饰符和类型 类 说明 class
MockMvcClientHttpRequestFactory
AClientHttpRequestFactory
for requests executed viaMockMvc
.org.springframework.web.client中AsyncClientHttpRequestFactory的使用
参数类型为AsyncClientHttpRequestFactory的org.springframework.web.client中的构造器 构造器 说明 AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory)
已过时。Create a new instance of theAsyncRestTemplate
using the givenAsyncClientHttpRequestFactory
.AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory, ClientHttpRequestFactory syncRequestFactory)
已过时。Creates a new instance of theAsyncRestTemplate
using the given asynchronous and synchronous request factories.AsyncRestTemplate(AsyncClientHttpRequestFactory requestFactory, RestTemplate restTemplate)
已过时。Create a new instance of theAsyncRestTemplate
using the givenAsyncClientHttpRequestFactory
and synchronousRestTemplate
.