public enum HttpStatus extends Enum<HttpStatus>
| Enum Constant and Description |
|---|
AUTHENTICATION_FAILED |
| Modifier and Type | Field and Description |
|---|---|
private String |
message |
private int |
status |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getMessage() |
String |
toString() |
static HttpStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatus AUTHENTICATION_FAILED
private String message
private int status
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public String toString()
toString in class Enum<HttpStatus>public String getMessage()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.