@ThingworxExtensionApiClass(since={6,6}) public static enum RESTAPIConstants.StatusCode extends java.lang.Enum<RESTAPIConstants.StatusCode>
Modifier and Type | Method and Description |
---|---|
byte |
binaryCode() |
static RESTAPIConstants.StatusCode |
fromBinaryCode(byte code) |
static RESTAPIConstants.StatusCode |
fromHttpCode(short code) |
java.lang.String |
getStatusMessage() |
short |
httpCode() |
boolean |
isError() |
static RESTAPIConstants.StatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RESTAPIConstants.StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RESTAPIConstants.StatusCode STATUS_USE_PROXY
public static final RESTAPIConstants.StatusCode STATUS_ACCEPTED
public static final RESTAPIConstants.StatusCode STATUS_BAD_GATEWAY
public static final RESTAPIConstants.StatusCode STATUS_REQUEST_TIMEOUT
public static final RESTAPIConstants.StatusCode STATUS_SERVER_REFUSED
public static final RESTAPIConstants.StatusCode STATUS_I_AM_A_TEAPOT
public static final RESTAPIConstants.StatusCode STATUS_CONFLICT
public static final RESTAPIConstants.StatusCode STATUS_SEE_OTHER
public static final RESTAPIConstants.StatusCode STATUS_METHOD_NOT_ALLOWED
public static final RESTAPIConstants.StatusCode STATUS_FOUND
public static final RESTAPIConstants.StatusCode STATUS_TEMPORARY_REDIRECT
public static final RESTAPIConstants.StatusCode STATUS_BAD_REQUEST
public static final RESTAPIConstants.StatusCode STATUS_SERVER_UNAVAILABLE
public static final RESTAPIConstants.StatusCode STATUS_NOT_IMPLEMENTED
public static final RESTAPIConstants.StatusCode STATUS_NOT_MODIFIED
public static final RESTAPIConstants.StatusCode STATUS_INVALID_SESSION
public static final RESTAPIConstants.StatusCode STATUS_PAYMENT_REQUIRED
public static final RESTAPIConstants.StatusCode STATUS_COMM_ERROR
public static final RESTAPIConstants.StatusCode STATUS_MOVED_PERMANENTLY
public static final RESTAPIConstants.StatusCode STATUS_INVALID_PROTOCOL_VERSION
public static final RESTAPIConstants.StatusCode STATUS_INTERNAL_ERROR
public static final RESTAPIConstants.StatusCode STATUS_NOT_FOUND
public static final RESTAPIConstants.StatusCode STATUS_NOT_ACCEPTABLE
public static final RESTAPIConstants.StatusCode STATUS_CREATED
public static final RESTAPIConstants.StatusCode STATUS_GATEWAY_TIMEOUT
public static final RESTAPIConstants.StatusCode STATUS_I_AM_BUZZED
public static final RESTAPIConstants.StatusCode STATUS_MULTIPLE_CHOICES
public static final RESTAPIConstants.StatusCode STATUS_SUCCESS
public static final RESTAPIConstants.StatusCode STATUS_UNAUTHORIZED
public static final RESTAPIConstants.StatusCode STATUS_NO_CONTENT
public static final RESTAPIConstants.StatusCode STATUS_PARTIAL_CONTENT
public static final RESTAPIConstants.StatusCode STATUS_FORBIDDEN
public static final RESTAPIConstants.StatusCode STATUS_SERVICE_UNAVAILABLE
public static final RESTAPIConstants.StatusCode STATUS_COMM_TIMEOUT
public static RESTAPIConstants.StatusCode[] values()
for (RESTAPIConstants.StatusCode c : RESTAPIConstants.StatusCode.values()) System.out.println(c);
public static RESTAPIConstants.StatusCode 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 null@ThingworxExtensionApiMethod(since={6,6}) public short httpCode()
@ThingworxExtensionApiMethod(since={6,6}) public byte binaryCode()
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.StatusCode fromHttpCode(short code)
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.StatusCode fromBinaryCode(byte code)
@ThingworxExtensionApiMethod(since={6,6}) public boolean isError()
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getStatusMessage()