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()
           
HttpClientConnection(LoginRequest login)
           
HttpClientConnection(String apiKey)
           
 
Method Summary
 void close()
           
protected  ExecutorService createExecutorService()
           
<T> T
execute(Request<T> request)
           
<T> Future<T>
executeAsync(Request<T> request)
           
 String getApiKey()
           
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()

HttpClientConnection

public HttpClientConnection(LoginRequest login)

HttpClientConnection

public HttpClientConnection(String apiKey)
Method Detail

executeAsync

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

execute

public <T> T execute(Request<T> request)
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

getApiKey

public String getApiKey()
Specified by:
getApiKey in interface Connection


Copyright © 2012. All Rights Reserved.