@Deprecated public class MockAsyncClientHttpRequest extends MockClientHttpRequest implements org.springframework.http.client.AsyncClientHttpRequest
MockClientHttpRequest that also implements
AsyncClientHttpRequest by wrapping the response in a
SettableListenableFuture.| Constructor and Description |
|---|
MockAsyncClientHttpRequest()
Deprecated.
|
MockAsyncClientHttpRequest(org.springframework.http.HttpMethod httpMethod,
URI uri)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> |
executeAsync()
Deprecated.
|
execute, executeInternal, getMethod, getMethodValue, getURI, isExecuted, setMethod, setResponse, setURI, toStringgetBody, getBodyAsBytes, getBodyAsString, getBodyAsString, getHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic MockAsyncClientHttpRequest()
public MockAsyncClientHttpRequest(org.springframework.http.HttpMethod httpMethod,
URI uri)
public org.springframework.util.concurrent.ListenableFuture<org.springframework.http.client.ClientHttpResponse> executeAsync()
throws IOException
executeAsync in interface org.springframework.http.client.AsyncClientHttpRequestIOException