Enum ResponseStatusType
- java.lang.Object
-
- java.lang.Enum<ResponseStatusType>
-
- fr.paris.lutece.plugins.taskstack.rs.dto.common.ResponseStatusType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResponseStatusType>
public enum ResponseStatusType extends java.lang.Enum<ResponseStatusType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_REQUESTCONFLICTFORBIDDENINTERNAL_SERVER_ERRORNOT_FOUNDOKSUCCESSUNAUTHORIZED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResponseStatusTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ResponseStatusType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final ResponseStatusType OK
-
SUCCESS
public static final ResponseStatusType SUCCESS
-
BAD_REQUEST
public static final ResponseStatusType BAD_REQUEST
-
UNAUTHORIZED
public static final ResponseStatusType UNAUTHORIZED
-
FORBIDDEN
public static final ResponseStatusType FORBIDDEN
-
NOT_FOUND
public static final ResponseStatusType NOT_FOUND
-
CONFLICT
public static final ResponseStatusType CONFLICT
-
INTERNAL_SERVER_ERROR
public static final ResponseStatusType INTERNAL_SERVER_ERROR
-
-
Method Detail
-
values
public static ResponseStatusType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResponseStatusType c : ResponseStatusType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseStatusType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-