T - type of provider config for this connection factorypublic abstract class AbstractProviderConnectionFactory<T extends ProviderConfig> extends Object implements ProviderConnectionFactory<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class.
|
| Constructor and Description |
|---|
AbstractProviderConnectionFactory(String url,
T config)
Creates a new abstract connection factory.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public AbstractProviderConnectionFactory(String url, T config)
AbstractConfig.makeImmutable().url - of the ldap to connect toconfig - provider configurationpublic T getProviderConfig()
ProviderConnectionFactorygetProviderConfig in interface ProviderConnectionFactory<T extends ProviderConfig>protected ConnectionFactoryMetadata getMetadata()
public ProviderConnection create() throws LdapException
ProviderConnectionFactorycreate in interface ProviderConnectionFactory<T extends ProviderConfig>LdapException - if an LDAP error occursprotected abstract ProviderConnection createInternal(String url) throws LdapException
url - to connect toLdapException - if a connection cannot be establishedCopyright © 2023. All rights reserved.