Package com.appslandia.plum.base
Enum CorsPolicyHandler.CorsResult
- java.lang.Object
-
- java.lang.Enum<CorsPolicyHandler.CorsResult>
-
- com.appslandia.plum.base.CorsPolicyHandler.CorsResult
-
- All Implemented Interfaces:
Serializable,Comparable<CorsPolicyHandler.CorsResult>
- Enclosing class:
- CorsPolicyHandler
public static enum CorsPolicyHandler.CorsResult extends Enum<CorsPolicyHandler.CorsResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWEDNOT_ALLOWED_CORSNOT_ALLOWED_HEADERNOT_ALLOWED_METHODNOT_ALLOWED_ORIGIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CorsPolicyHandler.CorsResultvalueOf(String name)Returns the enum constant of this type with the specified name.static CorsPolicyHandler.CorsResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOWED
public static final CorsPolicyHandler.CorsResult ALLOWED
-
NOT_ALLOWED_ORIGIN
public static final CorsPolicyHandler.CorsResult NOT_ALLOWED_ORIGIN
-
NOT_ALLOWED_METHOD
public static final CorsPolicyHandler.CorsResult NOT_ALLOWED_METHOD
-
NOT_ALLOWED_HEADER
public static final CorsPolicyHandler.CorsResult NOT_ALLOWED_HEADER
-
NOT_ALLOWED_CORS
public static final CorsPolicyHandler.CorsResult NOT_ALLOWED_CORS
-
-
Method Detail
-
values
public static CorsPolicyHandler.CorsResult[] 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 (CorsPolicyHandler.CorsResult c : CorsPolicyHandler.CorsResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CorsPolicyHandler.CorsResult 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
-
-