public interface LdapConnectionManager
LDAPConnection allocation.LdapConnectionManager| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Shuts down an instance.
|
com.novell.ldap.LDAPConnection |
getBoundConnection(String dn,
String pw)
Retrieve a bound
LDAPConnection using the indicated credentials |
LdapConnectionManagerConfig |
getConfig()
Retrieve the currently assigned
LdapConnectionManagerConfig. |
com.novell.ldap.LDAPConnection |
getConnection()
Retrieve an
LDAPConnection -- the connection may
already be bound depending on the configuration |
void |
init()
Initializes an instance for use, typically
by digesting the contents of the assigned
LdapConnectionManagerConfig. |
void |
returnConnection(com.novell.ldap.LDAPConnection conn)
Return an
LDAPConnection. |
void |
setConfig(LdapConnectionManagerConfig config)
Assign the LDAPConnection management configuration.
|
void init()
LdapConnectionManagerConfig. Usually
called by Spring.com.novell.ldap.LDAPConnection getConnection()
throws com.novell.ldap.LDAPException
LDAPConnection -- the connection may
already be bound depending on the configurationLDAPConnectioncom.novell.ldap.LDAPException - if the LDAPConnection allocation failscom.novell.ldap.LDAPConnection getBoundConnection(String dn, String pw) throws com.novell.ldap.LDAPException
LDAPConnection using the indicated credentialsdn - the distringuished name for bindingpw - the password for bindingLDAPConnectioncom.novell.ldap.LDAPException - if the LDAPConnection allocation failsvoid returnConnection(com.novell.ldap.LDAPConnection conn)
LDAPConnection. This can allow for
connections to be pooled instead of just destroyed.conn - an LDAPConnection that you no longer needvoid setConfig(LdapConnectionManagerConfig config)
config - a reference to a LdapConnectionManagerConfig. Should be cacheable without defensive copying.LdapConnectionManagerConfig getConfig()
LdapConnectionManagerConfig.LdapConnectionManagerConfig, if anyvoid destroy()
Copyright © 2003–2022 Sakai Project. All rights reserved.