Enum Class ResponseCode
- All Implemented Interfaces:
Serializable
,Comparable<ResponseCode>
,java.lang.constant.Constable
Response codes that are returned to the client as answers for requests.
- Author:
- floriangutmann
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsed if a request was made with missing or invalid session identificationUsed if something unexpected went wrong (eg.Used if the request was made with invalid (insufficient) dataThe requested update could be done, because the object was locked by another userUsed if the maintenancemode was enabledUsed if the requested object was not foundUsed if a request was made to a resource that required additional licensingUsed if everything went ok (eg.Used if insufficient permissions permitted to requested action -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseCode
Returns the enum constant of this class with the specified name.static ResponseCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Used if everything went ok (eg. page successfully saved) -
INVALIDDATA
Used if the request was made with invalid (insufficient) data -
PERMISSION
Used if insufficient permissions permitted to requested action -
MAINTENANCEMODE
Used if the maintenancemode was enabled -
NOTFOUND
Used if the requested object was not found -
FAILURE
Used if something unexpected went wrong (eg. page couldn't be successfully saved due to a database error) -
AUTHREQUIRED
Used if a request was made with missing or invalid session identification -
NOTLICENSED
Used if a request was made to a resource that required additional licensing -
LOCKED
The requested update could be done, because the object was locked by another user
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-