com.heroku.api.connection
public class HttpClientConnection extends Object implements FutureConnection
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientConnection.Provider |
| Constructor and Description |
|---|
HttpClientConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected ExecutorService |
createExecutorService() |
<T> T |
execute(Request<T> request,
Map<String,String> exraHeaders,
String key) |
<T> T |
execute(Request<T> request,
String key) |
<T> Future<T> |
executeAsync(Request<T> request,
Map<String,String> exraHeaders,
String apiKey) |
<T> Future<T> |
executeAsync(Request<T> request,
String apiKey) |
protected org.apache.http.impl.client.DefaultHttpClient |
getHttpClient() |
public <T> Future<T> executeAsync(Request<T> request, String apiKey)
executeAsync in interface AsyncConnection<Future<?>>executeAsync in interface FutureConnectionpublic <T> Future<T> executeAsync(Request<T> request, Map<String,String> exraHeaders, String apiKey)
executeAsync in interface AsyncConnection<Future<?>>executeAsync in interface FutureConnectionpublic <T> T execute(Request<T> request, String key)
execute in interface Connectionexecute in interface FutureConnectionpublic <T> T execute(Request<T> request, Map<String,String> exraHeaders, String key)
execute in interface Connectionexecute in interface FutureConnectionprotected ExecutorService createExecutorService()
protected org.apache.http.impl.client.DefaultHttpClient getHttpClient()
public void close()
close in interface ConnectionCopyright © 2014. All Rights Reserved.