|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.provider.AbstractProviderConnectionFactory<T>
T - type of provider config for this connection factorypublic abstract class AbstractProviderConnectionFactory<T extends ProviderConfig>
Provides a basic implementation for other connection factories to inherit.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class. |
| Constructor Summary | |
|---|---|
AbstractProviderConnectionFactory(String url,
T config)
Creates a new abstract connection factory. |
|
| Method Summary | |
|---|---|
ProviderConnection |
create()
Create a connection to an LDAP. |
protected abstract ProviderConnection |
createInternal(String url)
Create the provider connection and prepare the connection for use. |
protected ConnectionFactoryMetadata |
getMetadata()
Returns the connection factory metadata. |
T |
getProviderConfig()
Returns the provider configuration. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public AbstractProviderConnectionFactory(String url,
T config)
AbstractConfig.makeImmutable().
url - of the ldap to connect toconfig - provider configuration| Method Detail |
|---|
public T getProviderConfig()
getProviderConfig in interface ProviderConnectionFactory<T extends ProviderConfig>protected ConnectionFactoryMetadata getMetadata()
public ProviderConnection create()
throws LdapException
create in interface ProviderConnectionFactory<T extends ProviderConfig>LdapException - if an LDAP error occurs
protected abstract ProviderConnection createInternal(String url)
throws LdapException
url - to connect to
LdapException - if a connection cannot be establishedpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||