|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.ldap.pool.LdapConnectionManager
Manager that manages various LdapConnectionPools for use with various applications. It allows for the registration, unregistration, and retrieval of connection pools.
| Constructor Summary | |
LdapConnectionManager()
|
|
| Method Summary | |
static void |
close()
Close the LdapConnectionManager. |
static String |
generatePoolId(Properties properties)
Generate a unique Id for a LdapConnectionPool instance. |
static String |
generatePoolId(String hostname,
String port,
String version,
String username,
String password)
Generate a unique Id for a LdapConnectionPool instance. |
static LdapConnectionPool |
getPool(Properties poolProperties)
Get a LdapConnectionPool with a properties object that contains the hostname, port, version, username, password. |
static LdapConnectionPool |
getPool(String poolId)
Get a LdapConnectionPool with the specified poolId |
static LdapConnectionPool |
getPool(String hostname,
String port,
String version,
String username,
String password)
Get a LdapConnectionPool with the specified parameters |
static void |
initialize(List connectionPropertiesList)
Initialize the LdapConnectionManager |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LdapConnectionManager()
| Method Detail |
public static void initialize(List connectionPropertiesList)
connectionPropertiesList - a list of LdapConnectionPool properties
objects. Each set of properties are used to create a new connection
pool.
public static LdapConnectionPool getPool(String poolId)
throws com.novell.ldap.LDAPException
poolId - the id of the connection pool to obtain
com.novell.ldap.LDAPException - thrown if the manager is not initialized
public static LdapConnectionPool getPool(Properties poolProperties)
throws com.novell.ldap.LDAPException
poolProperties - a properties object that contains the hostname,
port, version, username, and password
com.novell.ldap.LDAPException - thrown if the manager is not initialized
public static LdapConnectionPool getPool(String hostname,
String port,
String version,
String username,
String password)
throws com.novell.ldap.LDAPException
hostname - the hostname of the request poolport - the port of the request poolversion - the version of the request poolusername - the username of the request poolpassword - the password of the request pool
com.novell.ldap.LDAPException - thrown if the manager is not initializedpublic static String generatePoolId(Properties properties)
NOTE:If for any reason a parameter is missing or not properly configured a null string will be returned.
properties - a properties object that contains values for the
hostname, port, version, username, and password.
public static String generatePoolId(String hostname,
String port,
String version,
String username,
String password)
NOTE:If for any reason a parameter is missing or not properly configured a null string will be returned.
hostname - the hostname of the ldap repositoryport - the port connecting to the ldap repositoryversion - the version of the repositoryusername - the usernamepassword - the password
public static void close()
throws com.novell.ldap.LDAPException
com.novell.ldap.LDAPException - thrown if manager has not been initialized
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||