Package com.browserup.bup.util
Enum HttpStatusClass
- java.lang.Object
-
- java.lang.Enum<HttpStatusClass>
-
- com.browserup.bup.util.HttpStatusClass
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpStatusClass>
public enum HttpStatusClass extends java.lang.Enum<HttpStatusClass>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_ERRORINFORMATIONALREDIRECTIONSERVER_ERRORSUCCESSUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(int code)java.lang.StringgetDescription()intgetMax()intgetMin()static HttpStatusClassvalueOf(int code)Returns the enum constant of this type with the specified name.static HttpStatusClassvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HttpStatusClass[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INFORMATIONAL
public static final HttpStatusClass INFORMATIONAL
-
SUCCESS
public static final HttpStatusClass SUCCESS
-
REDIRECTION
public static final HttpStatusClass REDIRECTION
-
CLIENT_ERROR
public static final HttpStatusClass CLIENT_ERROR
-
SERVER_ERROR
public static final HttpStatusClass SERVER_ERROR
-
UNKNOWN
public static final HttpStatusClass UNKNOWN
-
-
Method Detail
-
values
public static HttpStatusClass[] 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 (HttpStatusClass c : HttpStatusClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpStatusClass 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
-
valueOf
public static HttpStatusClass valueOf(int code)
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:
code- 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
-
contains
public boolean contains(int code)
-
getMin
public int getMin()
-
getMax
public int getMax()
-
getDescription
public java.lang.String getDescription()
-
-