public enum ResponseCode extends Enum<ResponseCode> implements javax.ws.rs.core.Response.StatusType
Enum Constant and Description |
---|
INSUFFICIENT_STORAGE |
RATE_LIMIT |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response.Status.Family |
getFamily() |
String |
getReasonPhrase() |
int |
getStatusCode() |
static ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode RATE_LIMIT
public static final ResponseCode INSUFFICIENT_STORAGE
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 getStatusCode()
getStatusCode
in interface javax.ws.rs.core.Response.StatusType
public javax.ws.rs.core.Response.Status.Family getFamily()
getFamily
in interface javax.ws.rs.core.Response.StatusType
public String getReasonPhrase()
getReasonPhrase
in interface javax.ws.rs.core.Response.StatusType
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.