|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ResponseCode>
com.gentics.contentnode.rest.model.response.ResponseCode
public enum ResponseCode
Response codes that are returned to the client as answers for requests.
Enum Constant Summary | |
---|---|
AUTHREQUIRED
Used if a request was made with missing or invalid session identification |
|
FAILURE
Used if something unexpected went wrong (eg. |
|
INVALIDDATA
Used if the request was made with invalid (insufficient) data |
|
MAINTENANCEMODE
Used if the maintenancemode was enabled |
|
NOTFOUND
Used if the requested object was not found |
|
NOTLICENSED
Used if a request was made to a resource that required additional licensing |
|
OK
Used if everything went ok (eg. |
|
PERMISSION
Used if insufficient permissions permitted to requested action |
Method Summary | |
---|---|
static ResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ResponseCode OK
public static final ResponseCode INVALIDDATA
public static final ResponseCode PERMISSION
public static final ResponseCode MAINTENANCEMODE
public static final ResponseCode NOTFOUND
public static final ResponseCode FAILURE
public static final ResponseCode AUTHREQUIRED
public static final ResponseCode NOTLICENSED
Method Detail |
---|
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |