Package org.apache.myfaces.context
Enum InvalidFileException.Reason
- java.lang.Object
-
- java.lang.Enum<InvalidFileException.Reason>
-
- org.apache.myfaces.context.InvalidFileException.Reason
-
- All Implemented Interfaces:
Serializable,Comparable<InvalidFileException.Reason>
- Enclosing class:
- InvalidFileException
public static enum InvalidFileException.Reason extends Enum<InvalidFileException.Reason>
Categorizes rejection reasons.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISALLOWED_SCHEMEINVALID_EXTENSIONPATH_TRAVERSAL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvalidFileException.ReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static InvalidFileException.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISALLOWED_SCHEME
public static final InvalidFileException.Reason DISALLOWED_SCHEME
-
PATH_TRAVERSAL
public static final InvalidFileException.Reason PATH_TRAVERSAL
-
INVALID_EXTENSION
public static final InvalidFileException.Reason INVALID_EXTENSION
-
-
Method Detail
-
values
public static InvalidFileException.Reason[] 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 (InvalidFileException.Reason c : InvalidFileException.Reason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvalidFileException.Reason 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
-
-