@Deprecated public static enum HTTPConstants.StatusCode extends Enum<HTTPConstants.StatusCode>
HTTPStatus
insteadEnum Constant and Description |
---|
BAD_REQUEST
Deprecated.
|
INTERNAL_SERVER_ERROR
Deprecated.
|
METHOD_NOT_ALLOWED
Deprecated.
|
NOT_FOUND
Deprecated.
|
UNAUTHORIZED
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Deprecated.
|
static HTTPConstants.StatusCode |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static HTTPConstants.StatusCode[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HTTPConstants.StatusCode BAD_REQUEST
public static final HTTPConstants.StatusCode UNAUTHORIZED
public static final HTTPConstants.StatusCode NOT_FOUND
public static final HTTPConstants.StatusCode METHOD_NOT_ALLOWED
public static final HTTPConstants.StatusCode INTERNAL_SERVER_ERROR
public static HTTPConstants.StatusCode[] values()
for (HTTPConstants.StatusCode c : HTTPConstants.StatusCode.values()) System.out.println(c);
public static HTTPConstants.StatusCode 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()
Copyright © 2012-2015 52north.org. All Rights Reserved.