public static enum JetAPIResponse.ResponseCode extends Enum<JetAPIResponse.ResponseCode>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CREATED |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
METHOD_NOT_ALLOWED |
NO_CONTENT |
NOT_FOUND |
SUCCESS |
UNAUTHORIZED |
UNAVAILABLE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static JetAPIResponse.ResponseCode |
create(int code)
Create a response code instance.
|
String |
getCaption()
Retrieve the response code caption
|
int |
getCode()
Retrieve the response code
|
static JetAPIResponse.ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JetAPIResponse.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JetAPIResponse.ResponseCode UNKNOWN
public static final JetAPIResponse.ResponseCode SUCCESS
public static final JetAPIResponse.ResponseCode CREATED
public static final JetAPIResponse.ResponseCode ACCEPTED
public static final JetAPIResponse.ResponseCode NO_CONTENT
public static final JetAPIResponse.ResponseCode BAD_REQUEST
public static final JetAPIResponse.ResponseCode UNAUTHORIZED
public static final JetAPIResponse.ResponseCode FORBIDDEN
public static final JetAPIResponse.ResponseCode NOT_FOUND
public static final JetAPIResponse.ResponseCode METHOD_NOT_ALLOWED
public static final JetAPIResponse.ResponseCode INTERNAL_SERVER_ERROR
public static final JetAPIResponse.ResponseCode UNAVAILABLE
public static JetAPIResponse.ResponseCode[] values()
for (JetAPIResponse.ResponseCode c : JetAPIResponse.ResponseCode.values()) System.out.println(c);
public static JetAPIResponse.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 static JetAPIResponse.ResponseCode create(int code)
code
- public int getCode()
public String getCaption()
Copyright © 2017. All rights reserved.