@Deprecated public class MockAsyncClientHttpRequest extends MockClientHttpRequest implements AsyncClientHttpRequest
MockClientHttpRequest that also implements
AsyncClientHttpRequest by wrapping the response in a
SettableListenableFuture.| Constructor and Description |
|---|
MockAsyncClientHttpRequest()
Deprecated.
|
MockAsyncClientHttpRequest(HttpMethod httpMethod,
URI uri)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ListenableFuture<ClientHttpResponse> |
executeAsync()
Deprecated.
Execute this request asynchronously, resulting in a Future handle.
|
execute, executeInternal, getMethod, getMethodValue, getURI, isExecuted, setMethod, setResponse, setURI, toStringgetBody, getBodyAsBytes, getBodyAsString, getBodyAsString, getHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMethod, getMethodValue, getURIgetBodygetHeaderspublic MockAsyncClientHttpRequest()
public MockAsyncClientHttpRequest(HttpMethod httpMethod, URI uri)
public ListenableFuture<ClientHttpResponse> executeAsync() throws IOException
AsyncClientHttpRequestClientHttpResponse that can be read.executeAsync in interface AsyncClientHttpRequestIOException - in case of I/O errors