public static enum ResultStatus.STATUS extends Enum<ResultStatus.STATUS>
Enum Constant and Description |
---|
ACCEPTED |
BAD_REQUEST |
CONFLICT |
CREATED |
FORBIDDEN |
NOT_FOUND |
OK |
SERVER_ERROR |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Obtain a brief description.
|
int |
getStatus()
Obtain the status code.
|
boolean |
isErrorState()
Whether this status is an error state
|
String |
toString() |
static ResultStatus.STATUS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultStatus.STATUS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultStatus.STATUS OK
public static final ResultStatus.STATUS CREATED
public static final ResultStatus.STATUS ACCEPTED
public static final ResultStatus.STATUS CONFLICT
public static final ResultStatus.STATUS NOT_FOUND
public static final ResultStatus.STATUS BAD_REQUEST
public static final ResultStatus.STATUS UNAUTHORIZED
public static final ResultStatus.STATUS FORBIDDEN
public static final ResultStatus.STATUS SERVER_ERROR
public static ResultStatus.STATUS[] values()
for (ResultStatus.STATUS c : ResultStatus.STATUS.values()) System.out.println(c);
public static ResultStatus.STATUS 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 getStatus()
public String getDescription()
public boolean isErrorState()
public String toString()
toString
in class Enum<ResultStatus.STATUS>
Copyright © 2022 Apache Software Foundation. All rights reserved.