com.heroku.api.connection
Class HttpClientConnection
java.lang.Object
com.heroku.api.connection.HttpClientConnection
- All Implemented Interfaces:
- AsyncConnection<Future<?>>, Connection
public class HttpClientConnection
- extends Object
- implements AsyncConnection<Future<?>>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientConnection
public HttpClientConnection()
HttpClientConnection
public HttpClientConnection(LoginRequest login)
HttpClientConnection
public HttpClientConnection(String apiKey)
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.