org.ldaptive.provider.jndi
Class JndiConnectionFactory
java.lang.Object
org.ldaptive.provider.AbstractProviderConnectionFactory<JndiProviderConfig>
org.ldaptive.provider.jndi.JndiConnectionFactory
- All Implemented Interfaces:
- ProviderConnectionFactory<JndiProviderConfig>
public class JndiConnectionFactory
- extends AbstractProviderConnectionFactory<JndiProviderConfig>
Creates connections using the JNDI InitialLdapContext class.
- Version:
- $Revision: 3092 $ $Date: 2015-02-16 16:31:47 -0500 (Mon, 16 Feb 2015) $
- Author:
- Middleware Services
JndiConnectionFactory
public JndiConnectionFactory(String url,
JndiProviderConfig config,
Map<String,Object> env)
- Creates a new jndi connection factory.
- Parameters:
url - of the ldap to connect toconfig - provider configurationenv - jndi context environment
getEnvironment
protected Map<String,Object> getEnvironment()
- Returns the JNDI environment for this connection factory. This map cannot
be modified.
- Returns:
- jndi environment
createInternal
protected JndiConnection createInternal(String url)
throws LdapException
- Create the provider connection and prepare the connection for use.
- Specified by:
createInternal in class AbstractProviderConnectionFactory<JndiProviderConfig>
- Parameters:
url - to connect to
- Returns:
- provider connection
- Throws:
LdapException - if a connection cannot be established
toString
public String toString()
-
- Overrides:
toString in class AbstractProviderConnectionFactory<JndiProviderConfig>
Copyright © 2003-2015 Virginia Tech. All Rights Reserved.