@Beta public class ApacheHttpClient extends Object implements HttpClient
| Constructor and Description |
|---|
ApacheHttpClient() |
ApacheHttpClient(HttpClientConfig config) |
ApacheHttpClient(HttpClientConfig config,
Set<HttpRequestFilter> requestFilters) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<T,E extends Exception> |
execute(Request request,
ResponseHandler<T,E> responseHandler) |
RequestStats |
getStats() |
public ApacheHttpClient()
public ApacheHttpClient(HttpClientConfig config)
public ApacheHttpClient(HttpClientConfig config, Set<HttpRequestFilter> requestFilters)
@PreDestroy public void close()
close in interface HttpClientclose in interface Closeableclose in interface AutoCloseablepublic RequestStats getStats()
getStats in interface HttpClientpublic <T,E extends Exception> T execute(Request request, ResponseHandler<T,E> responseHandler) throws E extends Exception
execute in interface HttpClientE extends ExceptionCopyright © 2010-2013 Airlift. All Rights Reserved.