Package com.thingworx.common
Class RESTAPIConstants
java.lang.Object
com.thingworx.common.RESTAPIConstants
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class RESTAPIConstants
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final char
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
buildBaseURL
(String servletName) static String
static RESTAPIConstants.Method
static String
getMethodName
(byte method) static String
getSupportedAcceptType
(String type) static String
static Charset
static boolean
isError
(int statusCode) static boolean
isImageType
(String type) static boolean
isOK
(int statusCode) static boolean
isRequest
(byte code) static boolean
isResponse
(byte code) static String[]
-
Field Details
-
UTF8_ENCODING
- See Also:
-
PROTOCOL_HTTP
- See Also:
-
PROTOCOL_HTTPS
- See Also:
-
PROTOCOL_TCP
- See Also:
-
PROTOCOL_SSL
- See Also:
-
PROTOCOL_FTP
- See Also:
-
PROTOCOL_SFTP
- See Also:
-
PROTOCOL_WS
- See Also:
-
PROTOCOL_WSS
- See Also:
-
WEBAPP_NAME
- See Also:
-
FORM_LOGIN
- See Also:
-
CONFIRM_PATH
- See Also:
-
RESET_PATH
- See Also:
-
WEBAPP_PATH_DELIMITER
- See Also:
-
WEBAPP_SCHEME_DELIMITER
- See Also:
-
QUERY_DELIMITER
- See Also:
-
PARAMETER_DELIMITER
- See Also:
-
PARAMETER_VALUE_DELIMITER
- See Also:
-
WEBSOCKET_API_ENDPOINT
- See Also:
-
WEBSOCKET_RELATIVE_URI
- See Also:
-
LOGIN_JSP_SUFFIX
- See Also:
-
PARAM_METHOD
- See Also:
-
PARAM_MAXITEMS
- See Also:
-
PARAM_SEARCHTAGS
- See Also:
-
PARAM_SEARCHASPECTS
- See Also:
-
PARAM_NAMEMASK
- See Also:
-
PARAM_METADATA
- See Also:
-
PARAM_ENTITYTYPE
- See Also:
-
PARAM_ENTITYNAME
- See Also:
-
PARAM_THINGNAME
- See Also:
-
PARAM_CHARACTERISTIC
- See Also:
-
PARAM_TARGET
- See Also:
-
PARAM_APIMETHOD
- See Also:
-
PARAM_WITHPERMISSIONS
- See Also:
-
PARAM_POSTPARAMETER
- See Also:
-
PARAM_TWSR
- See Also:
-
ORGANIZATION_NAME
- See Also:
-
LOCALHOST_STRING
- See Also:
-
LOCALHOST_IPV4
- See Also:
-
SESSION_FOREVER
public static final int SESSION_FOREVER- See Also:
-
SESSION_DEFAULT_TIMEOUT
public static final int SESSION_DEFAULT_TIMEOUT- See Also:
-
THINGWORX_SESSIONID
- See Also:
-
THINGWORX_JSESSIONID
- See Also:
-
HEADER_AUTHENTICATE_CHALLENGE
- See Also:
-
HEADER_AUTHENTICATE_CHALLENGE_BASIC_REALM
- See Also:
-
HEADER_AUTHORIZATION
- See Also:
-
HEADER_AUTHORIZATION_BASIC
- See Also:
-
HEADER_AUTHORIZATION_MOBILE
- See Also:
-
HEADER_TWX_MOBILE_TOKEN
- See Also:
-
HEADER_MOBILE_AUTH_REQUIRED
- See Also:
-
HEADER_X_FORWARDED_FOR1
- See Also:
-
HEADER_X_FORWARDED_FOR2
- See Also:
-
HEADER_X_REQUESTED_WITH
- See Also:
-
HEADER_COOKIE
- See Also:
-
HEADER_IF_NONE_MATCH
- See Also:
-
HEADER_IF_RANGE
- See Also:
-
HEADER_CONTENT_DISPOSITION
- See Also:
-
PARAM_AUTHTYPE
- See Also:
-
PARAM_USERID
- See Also:
-
PARAM_USERNAME
- See Also:
-
PARAM_PASSWORD
- See Also:
-
PARAM_APPKEY
- See Also:
-
PARAM_USE_SESSION
- See Also:
-
PARAM_IF_MODIFIED_SINCE
- See Also:
-
PARAM_IF_UNMODIFIED_SINCE
- See Also:
-
PARAM_LAST_MODIFIED
- See Also:
-
TWX_PUT_AS_PUT
- See Also:
-
PARAM_REASON
- See Also:
-
PARAM_EXPIRES
- See Also:
-
PARAM_INCLUDE_ADDITIONAL_FIELDS
- See Also:
-
PARAM_FILTER_BASED_ON_SCOPE
- See Also:
-
ACTION_LOGIN
- See Also:
-
ACTION_CONFIRM
- See Also:
-
ACTION_CHANGE_PASSWORD
- See Also:
-
ACTION_LOGOUT
- See Also:
-
THINGWORX_LOGIN_PAGE
- See Also:
-
THINGWORX_MAIN_PAGE
- See Also:
-
THINGWORX_CHANGEPASSWORD_PAGE
- See Also:
-
THINGWORX_FORM_USERNAME
- See Also:
-
THINGWORX_FORM_PASSWORD
- See Also:
-
THINGWORX_FORM_FIRSTNAME
- See Also:
-
THINGWORX_FORM_LASTNAME
- See Also:
-
THINGWORX_FORM_EMAIL
- See Also:
-
THINGWORX_FORM_CURRENT_PASSWORD
- See Also:
-
THINGWORX_FORM_NEW_PASSWORD
- See Also:
-
THINGWORX_FORM_NEW_PASSWORD_CONFIRM
- See Also:
-
THINGWORX_FORM_ORIGINAL_URI_FIELD
- See Also:
-
THINGWORX_LOGIN_ERROR_MESSAGE
- See Also:
-
THINGWORX_PASSWORD_CHANGE_MESSAGE
- See Also:
-
THINGWORX_HOME_URI
- See Also:
-
THINGWORX_METRIC_URI
- See Also:
-
THINGWORX_METRIC_HC_URI
- See Also:
-
THINGWORX_MEDIAENTITIES
- See Also:
-
LAST_ORGANIZATION_COOKIE_NAME
- See Also:
-
CSRF_COOKIE_NAME
- See Also:
-
FORM_CSRF_INPUT_NAME
- See Also:
-
INTERNAL_ERROR_MESSAGE
- See Also:
-
UNSUPPORTED_ERROR_MESSAGE
- See Also:
-
MESSAGE_FIELD_NAME
- See Also:
-
SUCCESS_MESSAGE
- See Also:
-
MIME_TYPE_XML
- See Also:
-
MIME_TYPE_HTML
- See Also:
-
MIME_TYPE_ATOM
- See Also:
-
MIME_TYPE_RSS
- See Also:
-
MIME_TYPE_JSON
- See Also:
-
MIME_TYPE_JSONCOMPRESSED
- See Also:
-
MIME_TYPE_CSV
- See Also:
-
MIME_TYPE_FORMENCODED
- See Also:
-
MIME_TYPE_FORMDATA
- See Also:
-
MIME_TYPE_SVG
- See Also:
-
MIME_TYPE_PNG
- See Also:
-
MIME_TYPE_ZIP
- See Also:
-
MIME_TYPE_JPG
- See Also:
-
MIME_TYPE_GIF
- See Also:
-
MIME_TYPE_BMP
- See Also:
-
MIME_TYPE_WINDOWS_ICON
- See Also:
-
MIME_TYPE_PDF
- See Also:
-
MIME_TYPE_UNKNOWNIMAGE
- See Also:
-
MIME_TYPE_BINARY
- See Also:
-
MIME_TYPE_OCTETSTREAM
- See Also:
-
MIME_TYPE_TEXT
- See Also:
-
MIME_TYPE_APP_XML
- See Also:
-
DEFAULT_CONTENT_TYPE
- See Also:
-
DEFAULT_ACCEPT_TYPE
- See Also:
-
SUPPORTED_CONTENT_TYPES
-
SUPPORTED_ACCEPT_TYPES
-
SUPPORTED_IMAGE_TYPES
-
SUPPORTED_MEDIA_ENTITY_CONTENT_TYPES
-
DISABLED_METRICS_HASH_SET
-
CONTENT_TYPE
- See Also:
-
CONTENT_LENGTH
- See Also:
-
CONTENT_DISPOSITION
- See Also:
-
ATTACHMENT
- See Also:
-
ACCEPT_HEADER
- See Also:
-
DEFAULT_ITEM_COUNT
public static final int DEFAULT_ITEM_COUNT- See Also:
-
MAX_SEARCH_API_ITEM_COUNT
public static final int MAX_SEARCH_API_ITEM_COUNT- See Also:
-
DEFAULT_SEARCH_ITEM_COUNT
public static final int DEFAULT_SEARCH_ITEM_COUNT- See Also:
-
DEFAULT_FEED_ITEM_COUNT
public static final int DEFAULT_FEED_ITEM_COUNT- See Also:
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT- See Also:
-
AVATAR_CHARACTERISTIC
- See Also:
-
PREVIEW_CHARACTERISTIC
- See Also:
-
DEFINITION_CHARACTERISTIC
- See Also:
-
METADATA_CHARACTERISTIC
- See Also:
-
METADATAWITHPERMISSIONS_CHARACTERISTIC
- See Also:
-
INSTANCEMETADATA_CHARACTERISTIC
- See Also:
-
INSTANCEMETADATAWITHPERMISSIONS_CHARACTERISTIC
- See Also:
-
INSTANCESERVICEDEFINITIONS_CHARACTERISTIC
- See Also:
-
INSTANCEPROPERTYDEFINITIONS_CHARACTERISTIC
- See Also:
-
INSTANCEEVENTDEFINITIONS_CHARACTERISTIC
- See Also:
-
FUNCTIONDEFINITIONS_CHARACTERISTIC
- See Also:
-
IMPLEMENTINGTHINGS_CHARACTERISTIC
- See Also:
-
IMPLEMENTINGTHINGSWITHDATA_CHARACTERISTIC
- See Also:
-
SUMMARY_CHARACTERISTIC
- See Also:
-
DESIGNTIMEPERMISSIONCHECK_CHARACTERISTIC
- See Also:
-
VISIBILITYPERMISSIONCHECK_CHARACTERISTIC
- See Also:
-
RELATIVE_PATH_STRING
- See Also:
-
TRACE_PARAMETER
- See Also:
-
NL_CHARACTER
public static final char NL_CHARACTER- See Also:
-
CR_CHARACTER
public static final char CR_CHARACTER- See Also:
-
HTML_TAG_START_CHARACTER
public static final char HTML_TAG_START_CHARACTER- See Also:
-
-
Constructor Details
-
RESTAPIConstants
public RESTAPIConstants()
-
-
Method Details
-
isRequest
-
isResponse
-
getUTF8Charset
-
getMethod
@ThingworxExtensionApiMethod(since={6,6}) public static RESTAPIConstants.Method getMethod(String method) -
getMethodName
-
getSupportedContentType
-
isImageType
-
getSupportedAcceptType
-
buildBaseURL
-
splitURI
-
createURI
-
isOK
-
isError
-