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 DefaultConnectionFactory
factory
Factory to copy properties from.
-
Constructor Summary
Constructors Constructor Description DefaultReferralConnectionFactory()
Creates a new default referral connection factory.DefaultReferralConnectionFactory(ConnectionConfig cc)
Creates a new default referral connection factory.DefaultReferralConnectionFactory(DefaultConnectionFactory cf)
Creates a new default referral connection factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private DefaultConnectionFactory
copy(DefaultConnectionFactory cf, String url)
Creates a copy of the supplied connection factory and sets the supplied URL on the new connection factory.ConnectionFactory
getConnectionFactory(String url)
Returns a connection factory for use with a referral.String
toString()
-
-
-
Field Detail
-
factory
private final DefaultConnectionFactory factory
Factory to copy properties from.
-
-
Constructor Detail
-
DefaultReferralConnectionFactory
public DefaultReferralConnectionFactory()
Creates a new default referral connection factory.
-
DefaultReferralConnectionFactory
public DefaultReferralConnectionFactory(ConnectionConfig cc)
Creates a new default referral connection factory.- Parameters:
cc
- connection configuration to copy properties from
-
DefaultReferralConnectionFactory
public DefaultReferralConnectionFactory(DefaultConnectionFactory cf)
Creates a new default referral connection factory.- Parameters:
cf
- default connection factory to copy properties from
-
-
Method Detail
-
copy
private DefaultConnectionFactory copy(DefaultConnectionFactory cf, String url)
Creates a copy of the supplied connection factory and sets the supplied URL on the new connection factory.- Parameters:
cf
- to copyurl
- to set on the new connection factory- Returns:
- default connection factory
-
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
-
-