public enum ReferralHandlingMode extends java.lang.Enum<ReferralHandlingMode>
| Enum Constant and Description |
|---|
FOLLOW |
IGNORE |
THROW |
THROW_FINDING_BASE |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
jndiValue
The JNDI Context.REFERRAL key's value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getJndiValue()
Gets the equivalent JNDI Context.REFERRAL key's value for this enumeration constant.
|
static ReferralHandlingMode |
getModeFromJndi(java.lang.String jndiValue)
Gets the enumeration constant for the JNDI Context.REFERRAL key's value.
|
static ReferralHandlingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReferralHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferralHandlingMode THROW
public static final ReferralHandlingMode FOLLOW
public static final ReferralHandlingMode IGNORE
public static final ReferralHandlingMode THROW_FINDING_BASE
private final java.lang.String jndiValue
Context#REFERRALpublic static ReferralHandlingMode[] values()
for (ReferralHandlingMode c : ReferralHandlingMode.values()) System.out.println(c);
public static ReferralHandlingMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getJndiValue()
Context#REFERRALpublic static final ReferralHandlingMode getModeFromJndi(java.lang.String jndiValue)
jndiValue - the JNDI Context.REFERRAL key's valuejava.lang.IllegalArgumentException - if the value is not a recognized valueContext#REFERRAL