Enum ReferralsPolicyEnum
- java.lang.Object
-
- java.lang.Enum<ReferralsPolicyEnum>
-
- org.apache.directory.api.ldap.model.message.ReferralsPolicyEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<ReferralsPolicyEnum>
public enum ReferralsPolicyEnum extends Enum<ReferralsPolicyEnum>
An enum describing the three possible actions for referrals :- Ignore : The referrals will be retruned as is (ie, the 'ref' attribute type will be present in the entry
- Follow : The referral will be chased by the client
- Throws : An LdapReferralException will be thrown
- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ReferralsPolicyEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReferralsPolicyEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE
public static final ReferralsPolicyEnum IGNORE
Ignore referral
-
FOLLOW
public static final ReferralsPolicyEnum FOLLOW
Floow referral
-
THROW
public static final ReferralsPolicyEnum THROW
Throw an exception
-
-
Method Detail
-
values
public static ReferralsPolicyEnum[] 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 (ReferralsPolicyEnum c : ReferralsPolicyEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferralsPolicyEnum 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
-
-