@Deprecated final class HttpComponentsAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest
ClientHttpRequest
implementation based on
Apache HttpComponents HttpAsyncClient.
Created via the HttpComponentsClientHttpRequestFactory
.
HttpComponentsClientHttpRequestFactory.createRequest(java.net.URI, org.springframework.http.HttpMethod)
Modifier and Type | Class and Description |
---|---|
private static class |
HttpComponentsAsyncClientHttpRequest.ClientHttpResponseFuture
Deprecated.
|
private static class |
HttpComponentsAsyncClientHttpRequest.HttpResponseFutureCallback
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private HttpAsyncClient |
httpClient
Deprecated.
|
private HttpContext |
httpContext
Deprecated.
|
private HttpUriRequest |
httpRequest
Deprecated.
|
Constructor and Description |
---|
HttpComponentsAsyncClientHttpRequest(HttpAsyncClient client,
HttpUriRequest request,
HttpContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers,
byte[] bufferedOutput)
Deprecated.
Abstract template method that writes the given headers and content to the HTTP request.
|
(package private) HttpContext |
getHttpContext()
Deprecated.
|
java.lang.String |
getMethodValue()
Deprecated.
Return the HTTP method of the request as a String
|
java.net.URI |
getURI()
Deprecated.
Return the URI of the request.
|
executeInternal, getBodyInternal
assertNotExecuted, executeAsync, getBody, getHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMethod
private final HttpAsyncClient httpClient
private final HttpUriRequest httpRequest
private final HttpContext httpContext
HttpComponentsAsyncClientHttpRequest(HttpAsyncClient client, HttpUriRequest request, HttpContext context)
public java.lang.String getMethodValue()
HttpRequest
public java.net.URI getURI()
HttpRequest
null
)HttpContext getHttpContext()
protected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
AbstractBufferingAsyncClientHttpRequest
executeInternal
in class AbstractBufferingAsyncClientHttpRequest
headers
- the HTTP headersbufferedOutput
- the body contentjava.io.IOException