base.connection
Class ConnectionUserAndKey

java.lang.Object
  extended by base.connection.ConnectionKey
      extended by base.connection.ConnectionUserAndKey
All Implemented Interfaces:
IConnection
Direct Known Subclasses:
EC2Connection, IBMConnection, NirvanixConnection, RackspaceConnection, S3Connection

public class ConnectionUserAndKey
extends ConnectionKey

Manages a connection with an access ID and secret key.


Field Summary
 
Fields inherited from class base.connection.ConnectionKey
accessId, accessKey, driver, host, httpClient, method, path, port, secure
 
Constructor Summary
ConnectionUserAndKey(java.lang.String accessId, java.lang.String accessKey, boolean secure, java.lang.String host, Driver driver)
          Constructs this ConnectionUserAndKey with a default port.
ConnectionUserAndKey(java.lang.String accessId, java.lang.String accessKey, boolean secure, java.lang.String host, int port, Driver driver)
          Constructs this ConnectionUserAndKey.
 
Method Summary
 
Methods inherited from class base.connection.ConnectionKey
addDefaultHeaders, addDefaultParams, connect, connect, connect, encodeData, request, urlEncodeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionUserAndKey

public ConnectionUserAndKey(java.lang.String accessId,
                            java.lang.String accessKey,
                            boolean secure,
                            java.lang.String host,
                            int port,
                            Driver driver)
Constructs this ConnectionUserAndKey.

Parameters:
accessId - identifies the user with the server
accessKey - is the user's secret key for server authentication
secure - indicates if this connection is secure
host - is the host to connect to
port - is the host's port to connect to
driver - references the driver that owns this connection

ConnectionUserAndKey

public ConnectionUserAndKey(java.lang.String accessId,
                            java.lang.String accessKey,
                            boolean secure,
                            java.lang.String host,
                            Driver driver)
Constructs this ConnectionUserAndKey with a default port.

Parameters:
accessId - identifies the user with the server
accessKey - is the user's secret key for server authentication
secure - indicates if this connection is secure
host - is the host to connect to
driver - references the driver that owns this connection