Package spark
Enum Redirect.Status
- java.lang.Object
-
- java.lang.Enum<Redirect.Status>
-
- spark.Redirect.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Redirect.Status>
- Enclosing class:
- Redirect
public static enum Redirect.Status extends java.lang.Enum<Redirect.Status>
The available redirect status codes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOUND
MOVED_PERMANENTLY
MULTIPLE_CHOICES
NOT_MODIFIED
PERMANENT_REDIRECT
SEE_OTHER
SWITCH_PROXY
TEMPORARY_REDIRECT
USE_PROXY
-
Field Summary
Fields Modifier and Type Field Description private int
intValue
-
Constructor Summary
Constructors Modifier Constructor Description private
Status(int intValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
intValue()
static Redirect.Status
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Redirect.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MULTIPLE_CHOICES
public static final Redirect.Status MULTIPLE_CHOICES
-
MOVED_PERMANENTLY
public static final Redirect.Status MOVED_PERMANENTLY
-
FOUND
public static final Redirect.Status FOUND
-
SEE_OTHER
public static final Redirect.Status SEE_OTHER
-
NOT_MODIFIED
public static final Redirect.Status NOT_MODIFIED
-
USE_PROXY
public static final Redirect.Status USE_PROXY
-
SWITCH_PROXY
public static final Redirect.Status SWITCH_PROXY
-
TEMPORARY_REDIRECT
public static final Redirect.Status TEMPORARY_REDIRECT
-
PERMANENT_REDIRECT
public static final Redirect.Status PERMANENT_REDIRECT
-
-
Method Detail
-
values
public static Redirect.Status[] 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 (Redirect.Status c : Redirect.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Redirect.Status valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
intValue
public int intValue()
-
-