com.heroku.api.connection
Interface Connection

All Known Subinterfaces:
AsyncConnection<F>

public interface Connection

Connection interface for connecting to the Heroku API.

Author:
Naaman Newbold

Method Summary
 void close()
          Release any resources associated with this connection
<T> T
execute(Request<T> request, String apiKey)
          Synchronously execute the given request, using a different apiKey than the one associated with this connection
 

Method Detail

execute

<T> T execute(Request<T> request,
              String apiKey)
Synchronously execute the given request, using a different apiKey than the one associated with this connection

Type Parameters:
T - the response type
Parameters:
request - the request to execute
apiKey - the apiKey of the user to make the request on behalf of
Returns:
the response as parsed by the request object

close

void close()
Release any resources associated with this connection



Copyright © 2012. All Rights Reserved.