Package org.codelibs.fess.app.web.api
Enum Class ApiResult.Status
- All Implemented Interfaces:
Serializable,Comparable<ApiResult.Status>,Constable
- Enclosing class:
ApiResult
Represents the status of an API response.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBad request status indicating client error.General failure status.Successful response status.System error status indicating server error.Unauthorized status indicating authentication failure. -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Gets the numeric ID of the status.static ApiResult.StatusReturns the enum constant of this class with the specified name.static ApiResult.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Successful response status. -
BAD_REQUEST
Bad request status indicating client error. -
SYSTEM_ERROR
System error status indicating server error. -
UNAUTHORIZED
Unauthorized status indicating authentication failure. -
FAILED
General failure status.
-
-
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
-
getId
public int getId()Gets the numeric ID of the status.- Returns:
- The numeric ID of the status.
-