public enum HttpStatusCodeLite extends java.lang.Enum<HttpStatusCodeLite>
Enum Constant and Description |
---|
BAD_REQUEST |
CONFLICT |
ERROR |
EXISTS |
INCORRECT_PASS |
INTERNAL_SERVER_ERROR |
NOT_EXISTS |
OK |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
DefaultResponse |
getResponse() |
DefaultResponse |
getResponse(java.lang.String description) |
void |
setResponse(DefaultResponse response) |
static HttpStatusCodeLite |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCodeLite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCodeLite OK
public static final HttpStatusCodeLite BAD_REQUEST
public static final HttpStatusCodeLite INTERNAL_SERVER_ERROR
public static final HttpStatusCodeLite SUCCESS
public static final HttpStatusCodeLite ERROR
public static final HttpStatusCodeLite EXISTS
public static final HttpStatusCodeLite NOT_EXISTS
public static final HttpStatusCodeLite INCORRECT_PASS
public static final HttpStatusCodeLite CONFLICT
public static HttpStatusCodeLite[] values()
for (HttpStatusCodeLite c : HttpStatusCodeLite.values()) System.out.println(c);
public static HttpStatusCodeLite valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic DefaultResponse getResponse()
public DefaultResponse getResponse(java.lang.String description)
public void setResponse(DefaultResponse response)