io.airlift.http.client
Class ApacheHttpClient

java.lang.Object
  extended by io.airlift.http.client.ApacheHttpClient
All Implemented Interfaces:
HttpClient

@Beta
public class ApacheHttpClient
extends Object
implements HttpClient


Constructor Summary
ApacheHttpClient()
           
ApacheHttpClient(HttpClientConfig config)
           
ApacheHttpClient(HttpClientConfig config, Set<HttpRequestFilter> requestFilters)
           
 
Method Summary
<T,E extends Exception>
T
execute(Request request, ResponseHandler<T,E> responseHandler)
           
 RequestStats getStats()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheHttpClient

public ApacheHttpClient()

ApacheHttpClient

public ApacheHttpClient(HttpClientConfig config)

ApacheHttpClient

public ApacheHttpClient(HttpClientConfig config,
                        Set<HttpRequestFilter> requestFilters)
Method Detail

getStats

public RequestStats getStats()
Specified by:
getStats in interface HttpClient

execute

public <T,E extends Exception> T execute(Request request,
                                         ResponseHandler<T,E> responseHandler)
          throws E extends Exception
Specified by:
execute in interface HttpClient
Throws:
E extends Exception


Copyright © 2010-2012 Airlift. All Rights Reserved.