Package org.ldaptive
Class AbstractPassiveConnectionStrategy
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractConnectionStrategy
org.ldaptive.AbstractPassiveConnectionStrategy
- All Implemented Interfaces:
Iterable<LdapURL>,ConnectionStrategy,Freezable
- Direct Known Subclasses:
ActivePassiveConnectionStrategy,DnsResolverConnectionStrategy
Base class for connection strategies that implement an active/passive format for URLs. This format indicates that the
first URL in the list is the most desirable and should be attempted first. Followed by URLs that are less desirable.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ldaptive.AbstractConnectionStrategy
AbstractConnectionStrategy.DefaultLdapURLIterator -
Field Summary
Fields inherited from class org.ldaptive.AbstractConnectionStrategy
ldapURLSet, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulate(String urls, LdapURLSet urlSet) Populates aLdapURLSetfrom the URL string provided at configuration time.Methods inherited from class org.ldaptive.AbstractConnectionStrategy
failure, getActivateCondition, getRetryCondition, initialize, isInitialized, setRetryCondition, success, toStringMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ldaptive.ConnectionStrategy
newInstanceMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Constructor Details
-
AbstractPassiveConnectionStrategy
public AbstractPassiveConnectionStrategy()
-
-
Method Details
-
populate
Description copied from interface:ConnectionStrategyPopulates aLdapURLSetfrom the URL string provided at configuration time.- Specified by:
populatein interfaceConnectionStrategy- Overrides:
populatein classAbstractConnectionStrategy- Parameters:
urls- Space-delimited string of URLs describing the LDAP hosts to connect to. The URLs in the string are commonlyldap://orldaps://URLs that directly describe the hosts to connect to, but may also describe a resource from which to obtain LDAP connection URLs as is the case forDnsSrvConnectionStrategythat use URLs with the schemedns:.urlSet- LDAP URL set to populate.
-