Package org.jboss.hal.dmr.dispatch
Enum Dispatcher.ResponseStatus
- java.lang.Object
-
- java.lang.Enum<Dispatcher.ResponseStatus>
-
- org.jboss.hal.dmr.dispatch.Dispatcher.ResponseStatus
-
- All Implemented Interfaces:
Serializable,Comparable<Dispatcher.ResponseStatus>
- Enclosing class:
- Dispatcher
public static enum Dispatcher.ResponseStatus extends Enum<Dispatcher.ResponseStatus>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Dispatcher.ResponseStatusfromStatusCode(int statusCode)static Dispatcher.ResponseStatusfromStatusText(String statusText)booleannotAllowed()intstatusCode()StringstatusText()static Dispatcher.ResponseStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Dispatcher.ResponseStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_0
public static final Dispatcher.ResponseStatus _0
-
_401
public static final Dispatcher.ResponseStatus _401
-
_403
public static final Dispatcher.ResponseStatus _403
-
_404
public static final Dispatcher.ResponseStatus _404
-
_500
public static final Dispatcher.ResponseStatus _500
-
_503
public static final Dispatcher.ResponseStatus _503
-
UNKNOWN
public static final Dispatcher.ResponseStatus UNKNOWN
-
-
Method Detail
-
values
public static Dispatcher.ResponseStatus[] 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 (Dispatcher.ResponseStatus c : Dispatcher.ResponseStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dispatcher.ResponseStatus 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
-
fromStatusText
public static Dispatcher.ResponseStatus fromStatusText(String statusText)
-
fromStatusCode
public static Dispatcher.ResponseStatus fromStatusCode(int statusCode)
-
notAllowed
public boolean notAllowed()
-
statusCode
public int statusCode()
-
statusText
public String statusText()
-
-