public enum StatusCode extends Enum<StatusCode>
Enum Constant and Description |
---|
ALREADY_EXECUTED
ALREADY_EXECUTED : indicates that a particular step / action has already been processed
|
FATAL
FATAL : indicates a critical error such as technical Exception ( runtime exception, illegal argument exception,
null pointer exception ...)
|
KO
KO : indicates the failed execution of the action
|
OK
OK : indicates the successful without warning
|
STARTED
STARTED : indicates that the workflow or the action handler or the process has been started
|
UNKNOWN
UNKNOWN : indicates that the workflow or the action handler or the process is in unknown status!
|
WARNING
WARNING : indicates successful with a general warning.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response.Status |
getEquivalentHttpStatus() |
int |
getStatusLevel() |
boolean |
isGreaterOrEqualToFatal() |
boolean |
isGreaterOrEqualToKo() |
static StatusCode |
parseFromHttpStatus(int status) |
static StatusCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusCode UNKNOWN
public static final StatusCode STARTED
public static final StatusCode ALREADY_EXECUTED
public static final StatusCode OK
public static final StatusCode WARNING
public static final StatusCode KO
public static final StatusCode FATAL
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getStatusLevel()
public boolean isGreaterOrEqualToKo()
public boolean isGreaterOrEqualToFatal()
public javax.ws.rs.core.Response.Status getEquivalentHttpStatus()
public static StatusCode parseFromHttpStatus(int status)
status
- Copyright © 2018 Vitam. All rights reserved.