Package com.thingworx.common
Enum RESTAPIConstants.Method
- java.lang.Object
-
- java.lang.Enum<RESTAPIConstants.Method>
-
- com.thingworx.common.RESTAPIConstants.Method
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RESTAPIConstants.Method>
- Enclosing class:
- RESTAPIConstants
@ThingworxExtensionApiClass(since={6,6}) public static enum RESTAPIConstants.Method extends java.lang.Enum<RESTAPIConstants.Method>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHREQUEST
BINDREQUEST
CLEARAUTHREQUEST
DELETE
GET
PATCH
POST
PUT
UNBINDREQUEST
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
AUTHREQUEST
public static final RESTAPIConstants.Method AUTHREQUEST
-
CLEARAUTHREQUEST
public static final RESTAPIConstants.Method CLEARAUTHREQUEST
-
DELETE
public static final RESTAPIConstants.Method DELETE
-
UNBINDREQUEST
public static final RESTAPIConstants.Method UNBINDREQUEST
-
POST
public static final RESTAPIConstants.Method POST
-
GET
public static final RESTAPIConstants.Method GET
-
BINDREQUEST
public static final RESTAPIConstants.Method BINDREQUEST
-
UNKNOWN
public static final RESTAPIConstants.Method UNKNOWN
-
PUT
public static final RESTAPIConstants.Method PUT
-
PATCH
public static final RESTAPIConstants.Method PATCH
-
-
Method Detail
-
values
public static RESTAPIConstants.Method[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RESTAPIConstants.Method c : RESTAPIConstants.Method.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RESTAPIConstants.Method valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
code
@ThingworxExtensionApiMethod(since={6,6}) public byte code()
-
isAPIRequest
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAPIRequest()
-
isBindRequest
@ThingworxExtensionApiMethod(since={6,6}) public boolean isBindRequest()
-
isAuthRequest
@ThingworxExtensionApiMethod(since={6,6}) public boolean isAuthRequest()
-
isClearAuthRequest
@ThingworxExtensionApiMethod(since={6,6}) public boolean isClearAuthRequest()
-
fromCode
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.Method fromCode(byte code)
-
-