public class TestingHttpClient extends Object implements HttpClient
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestingHttpClient.Processor |
HttpClient.HttpResponseFuture<T>| Constructor and Description |
|---|
TestingHttpClient(TestingHttpClient.Processor processor) |
TestingHttpClient(TestingHttpClient.Processor processor,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T,E extends Exception> |
execute(Request request,
ResponseHandler<T,E> responseHandler) |
<T,E extends Exception> |
executeAsync(Request request,
ResponseHandler<T,E> responseHandler) |
long |
getMaxContentLength() |
RequestStats |
getStats() |
boolean |
isClosed() |
public TestingHttpClient(TestingHttpClient.Processor processor)
public TestingHttpClient(TestingHttpClient.Processor processor, ExecutorService executor)
public <T,E extends Exception> HttpClient.HttpResponseFuture<T> executeAsync(Request request, ResponseHandler<T,E> responseHandler)
executeAsync in interface HttpClientpublic <T,E extends Exception> T execute(Request request, ResponseHandler<T,E> responseHandler) throws E extends Exception
execute in interface HttpClientE extends Exceptionpublic RequestStats getStats()
getStats in interface HttpClientpublic long getMaxContentLength()
getMaxContentLength in interface HttpClientpublic void close()
close in interface HttpClientclose in interface Closeableclose in interface AutoCloseablepublic boolean isClosed()
isClosed in interface HttpClientCopyright © 2010–2020 Airlift. All rights reserved.