T - type of jldap connectionpublic abstract class AbstractJLdapConnectionFactory<T extends JLdapConnection> extends AbstractProviderConnectionFactory<JLdapProviderConfig>
| Modifier and Type | Field and Description |
|---|---|
private com.novell.ldap.LDAPConstraints |
ldapConstraints
JLdap connection constraints.
|
private Duration |
socketTimeOut
Amount of time in milliseconds that operations will wait.
|
logger| Constructor and Description |
|---|
AbstractJLdapConnectionFactory(String url,
ConnectionStrategy strategy,
JLdapProviderConfig config,
com.novell.ldap.LDAPConstraints constraints,
Duration timeOut)
Creates a new abstract jldap connection factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
createInternal(String url)
Create the provider connection and prepare the connection for use.
|
protected abstract T |
createJLdapConnection(com.novell.ldap.LDAPConnection conn,
JLdapProviderConfig config)
Creates a jldap connection of the appropriate type for this connection factory.
|
protected abstract com.novell.ldap.LDAPConnection |
createLDAPConnection()
Creates an ldap connection for use with this connection factory.
|
protected void |
initializeConnection(com.novell.ldap.LDAPConnection conn)
Initialize the supplied connection after a connection has been established.
|
create, getMetadata, getProviderConfig, toStringprivate final com.novell.ldap.LDAPConstraints ldapConstraints
private final Duration socketTimeOut
public AbstractJLdapConnectionFactory(String url, ConnectionStrategy strategy, JLdapProviderConfig config, com.novell.ldap.LDAPConstraints constraints, Duration timeOut)
url - of the ldap to connect tostrategy - connection strategyconfig - provider configurationconstraints - connection constraintstimeOut - time in milliseconds that operations will waitprotected T createInternal(String url) throws LdapException
AbstractProviderConnectionFactorycreateInternal in class AbstractProviderConnectionFactory<JLdapProviderConfig>url - to connect toLdapException - if a connection cannot be establishedprotected abstract com.novell.ldap.LDAPConnection createLDAPConnection()
throws com.novell.ldap.LDAPException
com.novell.ldap.LDAPException - if an error occurs creating the connectionprotected void initializeConnection(com.novell.ldap.LDAPConnection conn)
throws com.novell.ldap.LDAPException
conn - to initializecom.novell.ldap.LDAPException - if an error occurs initializing the connectionprotected abstract T createJLdapConnection(com.novell.ldap.LDAPConnection conn, JLdapProviderConfig config)
conn - to create jldap connection withconfig - provider configurationCopyright © 2003-2019 Virginia Tech. All Rights Reserved.