org.jasig.cas.monitor
Enum StatusCode
java.lang.Object
java.lang.Enum<StatusCode>
org.jasig.cas.monitor.StatusCode
- All Implemented Interfaces:
- Serializable, Comparable<StatusCode>
public enum StatusCode
- extends Enum<StatusCode>
Monitor status code inspired by HTTP status codes.
- Since:
- 3.5.0
- Author:
- Marvin S. Addison
|
Method Summary |
int |
value()
Gets the numeric value of the status code. |
static StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ERROR
public static final StatusCode ERROR
WARN
public static final StatusCode WARN
INFO
public static final StatusCode INFO
OK
public static final StatusCode OK
UNKNOWN
public static final StatusCode UNKNOWN
values
public static StatusCode[] 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 (StatusCode c : StatusCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static StatusCode 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 name
NullPointerException - if the argument is null
value
public int value()
- Gets the numeric value of the status code. Higher values describe more severe conditions.
- Returns:
- Numeric status code value.
Copyright © 2004-2013 Jasig. All Rights Reserved.