@Deprecated class OkHttp3AsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest
AsyncClientHttpRequest
implementation based on OkHttp 3.x.
Created via the OkHttp3ClientHttpRequestFactory
.
Modifier and Type | Class and Description |
---|---|
private static class |
OkHttp3AsyncClientHttpRequest.OkHttpListenableFuture
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private OkHttpClient |
client
Deprecated.
|
private HttpMethod |
method
Deprecated.
|
private java.net.URI |
uri
Deprecated.
|
Constructor and Description |
---|
OkHttp3AsyncClientHttpRequest(OkHttpClient client,
java.net.URI uri,
HttpMethod method)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers,
byte[] content)
Deprecated.
Abstract template method that writes the given headers and content to the HTTP request.
|
HttpMethod |
getMethod()
Deprecated.
Return the HTTP method of the request.
|
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
private final OkHttpClient client
private final java.net.URI uri
private final HttpMethod method
public OkHttp3AsyncClientHttpRequest(OkHttpClient client, java.net.URI uri, HttpMethod method)
public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)public java.lang.String getMethodValue()
HttpRequest
public java.net.URI getURI()
HttpRequest
null
)protected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] content) throws java.io.IOException
AbstractBufferingAsyncClientHttpRequest
executeInternal
in class AbstractBufferingAsyncClientHttpRequest
headers
- the HTTP headerscontent
- the body contentjava.io.IOException