public class AsyncHttpAccessor extends Object
AsyncRestTemplate
and other HTTP accessing gateway helpers, defining common properties
such as the AsyncClientHttpRequestFactory
to operate on.
Not intended to be used directly. See
AsyncRestTemplate
.
AsyncRestTemplate
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
Logger available to subclasses.
|
Constructor and Description |
---|
AsyncHttpAccessor() |
Modifier and Type | Method and Description |
---|---|
protected AsyncClientHttpRequest |
createAsyncRequest(URI url,
HttpMethod method)
Create a new
AsyncClientHttpRequest via this template's AsyncClientHttpRequestFactory . |
AsyncClientHttpRequestFactory |
getAsyncRequestFactory()
Return the request factory that this accessor uses for obtaining
HttpRequests . |
void |
setAsyncRequestFactory(AsyncClientHttpRequestFactory asyncRequestFactory)
Set the request factory that this accessor uses for obtaining
HttpRequests . |
protected final Log logger
public void setAsyncRequestFactory(AsyncClientHttpRequestFactory asyncRequestFactory)
HttpRequests
.public AsyncClientHttpRequestFactory getAsyncRequestFactory()
HttpRequests
.protected AsyncClientHttpRequest createAsyncRequest(URI url, HttpMethod method) throws IOException
AsyncClientHttpRequest
via this template's AsyncClientHttpRequestFactory
.url
- the URL to connect tomethod
- the HTTP method to execute (GET, POST, etc.)IOException
- in case of I/O errors