public class JndiConnectionFactory extends AbstractProviderConnectionFactory<JndiProviderConfig>
InitialLdapContext
class.Modifier and Type | Field and Description |
---|---|
private ClassLoader |
classLoader
Context class loader to use when instantiating
InitialLdapContext . |
private Map<String,Object> |
environment
Environment properties.
|
private SslConfig |
threadLocalSslConfig
Thread local SslConfig, if one exists.
|
logger
Constructor and Description |
---|
JndiConnectionFactory(String url,
ConnectionStrategy strategy,
JndiProviderConfig config,
Map<String,Object> env,
ClassLoader cl)
Creates a new jndi connection factory.
|
Modifier and Type | Method and Description |
---|---|
protected JndiConnection |
createInternal(String url)
Create the provider connection and prepare the connection for use.
|
String |
toString() |
create, getMetadata, getProviderConfig
private final ClassLoader classLoader
InitialLdapContext
.private SslConfig threadLocalSslConfig
public JndiConnectionFactory(String url, ConnectionStrategy strategy, JndiProviderConfig config, Map<String,Object> env, ClassLoader cl)
url
- of the ldap to connect tostrategy
- connection strategyconfig
- provider configurationenv
- jndi context environmentcl
- class loaderprotected JndiConnection createInternal(String url) throws LdapException
AbstractProviderConnectionFactory
createInternal
in class AbstractProviderConnectionFactory<JndiProviderConfig>
url
- to connect toLdapException
- if a connection cannot be establishedpublic String toString()
toString
in class AbstractProviderConnectionFactory<JndiProviderConfig>
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.