接口的使用
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中的类 修饰符和类型 类 说明 classHttpComponentsAsyncClientHttpRequestFactory已过时。as of Spring 5.0, with no direct replacementclassInterceptingAsyncClientHttpRequestFactory已过时。as of Spring 5.0, with no direct replacementclassNetty4ClientHttpRequestFactory已过时。as of Spring 5.0, in favor ofReactorClientHttpConnectorclassOkHttp3ClientHttpRequestFactoryClientHttpRequestFactoryimplementation that uses OkHttp 3.x to create requests.classSimpleClientHttpRequestFactoryClientHttpRequestFactoryimplementation that uses standard JDK facilities.参数类型为AsyncClientHttpRequestFactory的org.springframework.http.client中的构造器 构造器 说明 InterceptingAsyncClientHttpRequestFactory(AsyncClientHttpRequestFactory delegate, List<AsyncClientHttpRequestInterceptor> interceptors)已过时。Create new instance ofInterceptingAsyncClientHttpRequestFactorywith delegated request factory and list of interceptors.org.springframework.http.client.support中AsyncClientHttpRequestFactory的使用
返回AsyncClientHttpRequestFactory的org.springframework.http.client.support中的方法 修饰符和类型 方法 说明 AsyncClientHttpRequestFactoryAsyncHttpAccessor. getAsyncRequestFactory()已过时。Return the request factory that this accessor uses for obtainingHttpRequests.AsyncClientHttpRequestFactoryInterceptingAsyncHttpAccessor. getAsyncRequestFactory()已过时。参数类型为AsyncClientHttpRequestFactory的org.springframework.http.client.support中的方法 修饰符和类型 方法 说明 voidAsyncHttpAccessor. 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中的类 修饰符和类型 类 说明 classMockMvcClientHttpRequestFactoryAClientHttpRequestFactoryfor requests executed viaMockMvc.org.springframework.web.client中AsyncClientHttpRequestFactory的使用
参数类型为AsyncClientHttpRequestFactory的org.springframework.web.client中的构造器 构造器 说明 AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory)已过时。Create a new instance of theAsyncRestTemplateusing the givenAsyncClientHttpRequestFactory.AsyncRestTemplate(AsyncClientHttpRequestFactory asyncRequestFactory, ClientHttpRequestFactory syncRequestFactory)已过时。Creates a new instance of theAsyncRestTemplateusing the given asynchronous and synchronous request factories.AsyncRestTemplate(AsyncClientHttpRequestFactory requestFactory, RestTemplate restTemplate)已过时。Create a new instance of theAsyncRestTemplateusing the givenAsyncClientHttpRequestFactoryand synchronousRestTemplate.