@Deprecated class InterceptingAsyncClientHttpRequest extends AbstractBufferingAsyncClientHttpRequest
AsyncClientHttpRequest
wrapper that enriches it proceeds the actual
request execution with calling the registered interceptors.InterceptingAsyncClientHttpRequestFactory
Modifier and Type | Class and Description |
---|---|
private class |
InterceptingAsyncClientHttpRequest.AsyncRequestExecution
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private HttpMethod |
httpMethod
Deprecated.
|
private java.util.List<AsyncClientHttpRequestInterceptor> |
interceptors
Deprecated.
|
private AsyncClientHttpRequestFactory |
requestFactory
Deprecated.
|
private java.net.URI |
uri
Deprecated.
|
Constructor and Description |
---|
InterceptingAsyncClientHttpRequest(AsyncClientHttpRequestFactory requestFactory,
java.util.List<AsyncClientHttpRequestInterceptor> interceptors,
java.net.URI uri,
HttpMethod httpMethod)
Deprecated.
Create new instance of
InterceptingAsyncClientHttpRequest . |
Modifier and Type | Method and Description |
---|---|
protected ListenableFuture<ClientHttpResponse> |
executeInternal(HttpHeaders headers,
byte[] body)
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 value.
|
java.net.URI |
getURI()
Deprecated.
Return the URI of the request (including a query string if any,
but only if it is well-formed for a URI representation).
|
executeInternal, getBodyInternal
assertNotExecuted, executeAsync, getBody, getHeaders
private AsyncClientHttpRequestFactory requestFactory
private java.util.List<AsyncClientHttpRequestInterceptor> interceptors
private java.net.URI uri
private HttpMethod httpMethod
public InterceptingAsyncClientHttpRequest(AsyncClientHttpRequestFactory requestFactory, java.util.List<AsyncClientHttpRequestInterceptor> interceptors, java.net.URI uri, HttpMethod httpMethod)
InterceptingAsyncClientHttpRequest
.requestFactory
- the async request factoryinterceptors
- the list of interceptorsuri
- the request URIhttpMethod
- the HTTP methodprotected ListenableFuture<ClientHttpResponse> executeInternal(HttpHeaders headers, byte[] body) throws java.io.IOException
AbstractBufferingAsyncClientHttpRequest
executeInternal
in class AbstractBufferingAsyncClientHttpRequest
headers
- the HTTP headersbody
- the body contentjava.io.IOException
public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)HttpRequest.getMethodValue()
,
HttpMethod.resolve(String)
public java.lang.String getMethodValue()
HttpRequest
HttpRequest.getMethod()
public java.net.URI getURI()
HttpRequest
null
)