Package org.ldaptive

Class AbstractPassiveConnectionStrategy

All Implemented Interfaces:
Iterable<LdapURL>, ConnectionStrategy, Freezable
Direct Known Subclasses:
ActivePassiveConnectionStrategy, DnsResolverConnectionStrategy

public abstract class AbstractPassiveConnectionStrategy extends AbstractConnectionStrategy
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.
  • Constructor Details

    • AbstractPassiveConnectionStrategy

      public AbstractPassiveConnectionStrategy()
  • Method Details

    • populate

      public void populate(String urls, LdapURLSet urlSet)
      Description copied from interface: ConnectionStrategy
      Populates a LdapURLSet from the URL string provided at configuration time.
      Specified by:
      populate in interface ConnectionStrategy
      Overrides:
      populate in class AbstractConnectionStrategy
      Parameters:
      urls - Space-delimited string of URLs describing the LDAP hosts to connect to. The URLs in the string are commonly ldap:// or ldaps:// 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 for DnsSrvConnectionStrategy that use URLs with the scheme dns:.
      urlSet - LDAP URL set to populate.