类 AsyncHttpAccessor
- java.lang.Object
- org.springframework.http.client.support.AsyncHttpAccessor
@Deprecated public class AsyncHttpAccessor extends Object
已过时。as of Spring 5.0, with no direct replacementBase class forAsyncRestTemplate
and other HTTP accessing gateway helpers, defining common properties such as theAsyncClientHttpRequestFactory
to operate on.Not intended to be used directly. See
AsyncRestTemplate
.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
- 另请参阅:
AsyncRestTemplate
构造器概要
构造器 构造器 说明 AsyncHttpAccessor()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected AsyncClientHttpRequest
createAsyncRequest(URI url, HttpMethod method)
已过时。Create a newAsyncClientHttpRequest
via this template'sAsyncClientHttpRequestFactory
.AsyncClientHttpRequestFactory
getAsyncRequestFactory()
已过时。Return the request factory that this accessor uses for obtainingHttpRequests
.void
setAsyncRequestFactory(AsyncClientHttpRequestFactory asyncRequestFactory)
已过时。Set the request factory that this accessor uses for obtainingHttpRequests
.
构造器详细资料
AsyncHttpAccessor
public AsyncHttpAccessor()
已过时。
方法详细资料
setAsyncRequestFactory
public void setAsyncRequestFactory(AsyncClientHttpRequestFactory asyncRequestFactory)
已过时。Set the request factory that this accessor uses for obtainingHttpRequests
.
getAsyncRequestFactory
public AsyncClientHttpRequestFactory getAsyncRequestFactory()
已过时。Return the request factory that this accessor uses for obtainingHttpRequests
.
createAsyncRequest
protected AsyncClientHttpRequest createAsyncRequest(URI url, HttpMethod method) throws IOException
已过时。Create a newAsyncClientHttpRequest
via this template'sAsyncClientHttpRequestFactory
.- 参数:
url
- the URL to connect tomethod
- the HTTP method to execute (GET, POST, etc.)- 返回:
- the created request
- 抛出:
IOException
- in case of I/O errors