com.heroku.api.connection
Class HttpClientConnection

java.lang.Object
  extended by com.heroku.api.connection.HttpClientConnection
All Implemented Interfaces:
AsyncConnection<Future<?>>, Connection

public class HttpClientConnection
extends Object
implements AsyncConnection<Future<?>>


Nested Class Summary
static class HttpClientConnection.Provider
           
 
Constructor Summary
HttpClientConnection()
           
 
Method Summary
 void close()
           
protected  ExecutorService createExecutorService()
           
<T> T
execute(Request<T> request, String key)
           
<T> Future<T>
executeAsync(Request<T> request, String apiKey)
           
protected  org.apache.http.impl.client.DefaultHttpClient getHttpClient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientConnection

public HttpClientConnection()
Method Detail

executeAsync

public <T> Future<T> executeAsync(Request<T> request,
                                  String apiKey)
Specified by:
executeAsync in interface AsyncConnection<Future<?>>

execute

public <T> T execute(Request<T> request,
                     String key)
Specified by:
execute in interface Connection

createExecutorService

protected ExecutorService createExecutorService()

getHttpClient

protected org.apache.http.impl.client.DefaultHttpClient getHttpClient()

close

public void close()
Specified by:
close in interface Connection


Copyright © 2012. All Rights Reserved.