@ThingworxExtensionApiClass(since={6,6}) public static enum RESTAPIConstants.Method extends java.lang.Enum<RESTAPIConstants.Method>
Enum Constant and Description |
---|
AUTHREQUEST |
BINDREQUEST |
CLEARAUTHREQUEST |
DELETE |
GET |
PATCH |
POST |
PUT |
UNBINDREQUEST |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
byte |
code() |
static RESTAPIConstants.Method |
fromCode(byte code) |
boolean |
isAPIRequest() |
boolean |
isAuthRequest() |
boolean |
isBindRequest() |
boolean |
isClearAuthRequest() |
static RESTAPIConstants.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RESTAPIConstants.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RESTAPIConstants.Method AUTHREQUEST
public static final RESTAPIConstants.Method CLEARAUTHREQUEST
public static final RESTAPIConstants.Method DELETE
public static final RESTAPIConstants.Method UNBINDREQUEST
public static final RESTAPIConstants.Method POST
public static final RESTAPIConstants.Method GET
public static final RESTAPIConstants.Method BINDREQUEST
public static final RESTAPIConstants.Method UNKNOWN
public static final RESTAPIConstants.Method PUT
public static final RESTAPIConstants.Method PATCH
public static RESTAPIConstants.Method[] values()
for (RESTAPIConstants.Method c : RESTAPIConstants.Method.values()) System.out.println(c);
public static RESTAPIConstants.Method 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 byte code()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAPIRequest()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isBindRequest()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAuthRequest()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isClearAuthRequest()
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.Method fromCode(byte code)