org.skunk.dav.client
Class DAVConnectionPool
java.lang.Object
|
+--org.skunk.dav.client.DAVConnectionPool
- public abstract class DAVConnectionPool
- extends java.lang.Object
a pool for DAVConnection objects.
Method Summary |
static boolean |
canSupportSSL()
indicates at runtime whether the current build can support SSL |
static DAVConnection |
getDAVConnection(java.lang.String host,
int port)
returns a pooled DAVConnection instance with the http protocol |
static DAVConnection |
getDAVConnection(java.lang.String host,
int port,
boolean secure)
returns a pooled DAVConnection instance |
static java.util.Enumeration |
getDAVConnections()
|
protected static java.lang.String |
getKey(java.lang.String host,
int port)
returns the key used in the DAVConnectionPool hashtable for a DAVConnection with the given host and port. |
static void |
removeDAVConnection(java.lang.String host,
int port)
removes the DAVConnection with the given host and port from the pool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAVConnectionPool
public DAVConnectionPool()
canSupportSSL
public static final boolean canSupportSSL()
- indicates at runtime whether the current build can support SSL
- Returns:
- whether SSL is supported
getDAVConnection
public static DAVConnection getDAVConnection(java.lang.String host,
int port,
boolean secure)
- returns a pooled DAVConnection instance
- Parameters:
host
- the hostport
- the portsecure
- whether the protocol of the connection is https (otherwise, http)- Returns:
- the pooled DAVConnection instance
getDAVConnection
public static DAVConnection getDAVConnection(java.lang.String host,
int port)
- returns a pooled DAVConnection instance with the http protocol
- Parameters:
host
- the hostport
- the port- Returns:
- the pooled DAVConnection instance
removeDAVConnection
public static void removeDAVConnection(java.lang.String host,
int port)
- removes the DAVConnection with the given host and port from the pool
- Parameters:
host
- the hostport
- the port
getKey
protected static java.lang.String getKey(java.lang.String host,
int port)
- returns the key used in the DAVConnectionPool hashtable for a DAVConnection with the given host and port.
- Parameters:
host
- the hostport
- the port- Returns:
- the key used
getDAVConnections
public static java.util.Enumeration getDAVConnections()