Package org.springframework.http.client
Interface AsyncClientHttpRequestFactory
- All Known Implementing Classes:
HttpComponentsAsyncClientHttpRequestFactory
,InterceptingAsyncClientHttpRequestFactory
,Netty4ClientHttpRequestFactory
,OkHttp3ClientHttpRequestFactory
,OkHttpClientHttpRequestFactory
,SimpleClientHttpRequestFactory
public interface AsyncClientHttpRequestFactory
Factory forAsyncClientHttpRequest
objects. Requests are created by thecreateAsyncRequest(URI, HttpMethod)
method.- Since:
- 4.0
- Author:
- Arjen Poutsma
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncClientHttpRequest
createAsyncRequest(URI uri, HttpMethod httpMethod)
Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.
Method Detail
createAsyncRequest
AsyncClientHttpRequest createAsyncRequest(URI uri, HttpMethod httpMethod) throws IOException
Create a new asynchronousAsyncClientHttpRequest
for the specified URI and HTTP method.The returned request can be written to, and then executed by calling
AsyncClientHttpRequest.executeAsync()
.- Parameters:
uri
- the URI to create a request forhttpMethod
- the HTTP method to execute- Returns:
- the created request
- Throws:
IOException
- in case of I/O errors