Package org.ldaptive.referral
Class DefaultReferralConnectionFactory
- java.lang.Object
-
- org.ldaptive.referral.DefaultReferralConnectionFactory
-
- All Implemented Interfaces:
ReferralConnectionFactory
public class DefaultReferralConnectionFactory extends Object implements ReferralConnectionFactory
Default implementation of a referral connection factory. Delegates to aDefaultConnectionFactory
.
-
-
Field Summary
Fields Modifier and Type Field Description private ConnectionConfig
connectionConfig
Connection config for referrals.
-
Constructor Summary
Constructors Constructor Description DefaultReferralConnectionFactory()
Creates a new default referral connection factory.DefaultReferralConnectionFactory(ConnectionConfig config)
Creates a new default referral connection factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionFactory
getConnectionFactory(String url)
Returns a connection factory for use with a referral.
-
-
-
Field Detail
-
connectionConfig
private final ConnectionConfig connectionConfig
Connection config for referrals.
-
-
Constructor Detail
-
DefaultReferralConnectionFactory
public DefaultReferralConnectionFactory()
Creates a new default referral connection factory.
-
DefaultReferralConnectionFactory
public DefaultReferralConnectionFactory(ConnectionConfig config)
Creates a new default referral connection factory.- Parameters:
config
- connection configuration
-
-
Method Detail
-
getConnectionFactory
public ConnectionFactory getConnectionFactory(String url)
Description copied from interface:ReferralConnectionFactory
Returns a connection factory for use with a referral.- Specified by:
getConnectionFactory
in interfaceReferralConnectionFactory
- Parameters:
url
- LDAP URL to the referral server- Returns:
- connection factory
-
-