|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.DefaultConnectionFactory
public class DefaultConnectionFactory
Creates connections for performing ldap operations.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultConnectionFactory.DefaultConnection
Default implementation for managing a connection to an LDAP. |
| Field Summary | |
|---|---|
protected static Provider<?> |
DEFAULT_PROVIDER
Static reference to the default ldap provider. |
static String |
PROVIDER
Ldap provider class name. |
| Constructor Summary | |
|---|---|
DefaultConnectionFactory()
Default constructor. |
|
DefaultConnectionFactory(ConnectionConfig cc)
Creates a new default connection factory. |
|
DefaultConnectionFactory(ConnectionConfig cc,
Provider<?> p)
Creates a new default connection factory. |
|
DefaultConnectionFactory(String ldapUrl)
Creates a new default connection factory. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Creates a new connection. |
static Connection |
getConnection(ConnectionConfig cc)
Creates a new connection. |
static Connection |
getConnection(String ldapUrl)
Creates a new connection. |
ConnectionConfig |
getConnectionConfig()
Returns the connection config. |
static Provider<?> |
getDefaultProvider()
The PROVIDER property is checked and that class is loaded if
provided. |
Provider<?> |
getProvider()
Returns the ldap provider. |
void |
setConnectionConfig(ConnectionConfig cc)
Sets the connection config. |
void |
setProvider(Provider<?> p)
Sets the ldap provider. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROVIDER
protected static final Provider<?> DEFAULT_PROVIDER
| Constructor Detail |
|---|
public DefaultConnectionFactory()
public DefaultConnectionFactory(String ldapUrl)
ldapUrl - to connect topublic DefaultConnectionFactory(ConnectionConfig cc)
cc - connection configuration
public DefaultConnectionFactory(ConnectionConfig cc,
Provider<?> p)
cc - connection configurationp - provider| Method Detail |
|---|
public ConnectionConfig getConnectionConfig()
public void setConnectionConfig(ConnectionConfig cc)
AbstractConfig.makeImmutable().
cc - connection configpublic Provider<?> getProvider()
public void setProvider(Provider<?> p)
p - ldap provider to setpublic Connection getConnection()
getConnection in interface ConnectionFactorypublic static Connection getConnection(String ldapUrl)
ldapUrl - to connect to
public static Connection getConnection(ConnectionConfig cc)
cc - connection configuration
public static Provider<?> getDefaultProvider()
PROVIDER property is checked and that class is loaded if
provided. Otherwise the JNDI provider is returned.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||