Package org.apache.syncope.common.lib
Enum AbstractLDAPConf.LdapConnectionStrategy
- java.lang.Object
-
- java.lang.Enum<AbstractLDAPConf.LdapConnectionStrategy>
-
- org.apache.syncope.common.lib.AbstractLDAPConf.LdapConnectionStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractLDAPConf.LdapConnectionStrategy>
- Enclosing class:
- AbstractLDAPConf
public static enum AbstractLDAPConf.LdapConnectionStrategy extends Enum<AbstractLDAPConf.LdapConnectionStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVE_PASSIVE
First ldap used until it fails.DNS_SRV
ldap urls based on DNS SRV records.RANDOM
Randomly pick a url.ROUND_ROBIN
Navigate the ldap url list for new connections and circle back.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractLDAPConf.LdapConnectionStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractLDAPConf.LdapConnectionStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE_PASSIVE
public static final AbstractLDAPConf.LdapConnectionStrategy ACTIVE_PASSIVE
First ldap used until it fails.
-
ROUND_ROBIN
public static final AbstractLDAPConf.LdapConnectionStrategy ROUND_ROBIN
Navigate the ldap url list for new connections and circle back.
-
RANDOM
public static final AbstractLDAPConf.LdapConnectionStrategy RANDOM
Randomly pick a url.
-
DNS_SRV
public static final AbstractLDAPConf.LdapConnectionStrategy DNS_SRV
ldap urls based on DNS SRV records.
-
-
Method Detail
-
values
public static AbstractLDAPConf.LdapConnectionStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AbstractLDAPConf.LdapConnectionStrategy c : AbstractLDAPConf.LdapConnectionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AbstractLDAPConf.LdapConnectionStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-