public enum ReferralHandlingMode extends Enum<ReferralHandlingMode>
Enum Constant and Description |
---|
FOLLOW |
IGNORE |
THROW |
THROW_FINDING_BASE |
Modifier and Type | Method and Description |
---|---|
String |
getJndiValue()
Gets the equivalent JNDI Context.REFERRAL key's value for this enumeration constant.
|
static ReferralHandlingMode |
getModeFromJndi(String jndiValue)
Gets the enumeration constant for the JNDI Context.REFERRAL key's value.
|
static ReferralHandlingMode |
valueOf(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
public static ReferralHandlingMode[] values()
for (ReferralHandlingMode c : ReferralHandlingMode.values()) System.out.println(c);
public static ReferralHandlingMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getJndiValue()
Context.REFERRAL
public static ReferralHandlingMode getModeFromJndi(String jndiValue)
jndiValue
- the JNDI Context.REFERRAL key's valueIllegalArgumentException
- if the value is not a recognized valueContext.REFERRAL
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.