Package org.craftercms.studio.model.rest
Class ApiResponse
java.lang.Object
org.craftercms.studio.model.rest.ApiResponse
Represents the response of an API operation.
- Author:
- Dejan Brkic, avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
static final ApiResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Returns the response code.Returns the URL to documentation related to the response.Returns the detailed message of the response.Returns what the user can do in order to address the issue indicated by the response.void
setCode
(int code) Sets the response code.void
setDocumentationUrl
(String documentationUrl) Sets the URL to documentation related to the response.void
setMessage
(String message) Sets the detailed message of the response.void
setRemedialAction
(String remedialAction) Sets what the user can do in order to address the issue indicated by the response.toString()
-
Field Details
-
OK
-
CREATED
-
DELETED
-
COMPLETED_WITH_ERRORS
-
INTERNAL_SYSTEM_FAILURE
-
INVALID_PARAMS
-
DEPRECATED
-
UNAUTHENTICATED
-
UNAUTHORIZED
-
ORG_NOT_FOUND
-
ORG_ALREADY_EXISTS
-
GROUP_NOT_FOUND
-
GROUP_ALREADY_EXISTS
-
GROUP_EXTERNALLY_MANAGED
-
SITE_NOT_FOUND
-
SITE_ALREADY_EXISTS
-
INVALID_SITE_STATE
-
USER_NOT_FOUND
-
USER_ALREADY_EXISTS
-
USER_EXTERNALLY_MANAGED
-
USER_PASSWORD_REQUIREMENTS_FAILED
-
USER_PASSWORD_DOES_NOT_MATCH
-
CONTENT_NOT_FOUND
-
CONTENT_ALREADY_EXISTS
-
CONTENT_ALREADY_LOCKED
-
CONTENT_MOVE_INVALID_LOCATION
-
BLOB_NOT_FOUND
-
PUBLISHING_DISABLED
-
SEARCH_UNREACHABLE
-
LOV_NOT_FOUND
-
CLUSTER_MEMBER_NOT_FOUND
-
CLUSTER_MEMBER_ALREADY_EXISTS
-
REMOTE_REPOSITORY_NOT_FOUND
-
REMOTE_REPOSITORY_ALREADY_EXISTS
-
PULL_FROM_REMOTE_REPOSITORY_CONFLICT
-
ADD_REMOTE_INVALID
-
REMOVE_REMOTE_FAILED
-
PUSH_TO_REMOTE_FAILED
-
REMOTE_REPOSITORY_NOT_REMOVABLE
-
REMOTE_REPOSITORY_AUTHENTICATION_FAILED
-
MARKETPLACE_NOT_INITIALIZED
-
MARKETPLACE_UNREACHABLE
-
PLUGIN_ALREADY_INSTALLED
-
PLUGIN_INSTALLATION_ERROR
-
AWS_UNREACHABLE
-
LOGGER_NOT_FOUND
-
CONFIGURATION_PROFILE_NOT_FOUND
-
-
Constructor Details
-
ApiResponse
-
-
Method Details
-
getCode
public int getCode()Returns the response code. -
setCode
public void setCode(int code) Sets the response code. -
getMessage
Returns the detailed message of the response. -
setMessage
Sets the detailed message of the response. -
getRemedialAction
Returns what the user can do in order to address the issue indicated by the response. -
setRemedialAction
Sets what the user can do in order to address the issue indicated by the response. -
getDocumentationUrl
Returns the URL to documentation related to the response. -
setDocumentationUrl
Sets the URL to documentation related to the response. -
toString
-