Enum Response.StatusCode
- java.lang.Object
-
- java.lang.Enum<Response.StatusCode>
-
- org.gbif.api.model.common.messaging.Response.StatusCode
-
- All Implemented Interfaces:
Serializable,Comparable<Response.StatusCode>
public static enum Response.StatusCode extends Enum<Response.StatusCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDBAD_REQUESTCONFLICTCREATEDFORBIDDENINTERNAL_SERVER_ERRORMOVED_PERMANENTLYNO_CONTENTNOT_FOUNDNOT_MODIFIEDOKSEE_OTHERSERVER_UNAVAILABLESERVICE_UNAVAILABLETEMPORARY_REDIRECTUNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCode()StringgetReason()voidsetCode(Integer code)voidsetReason(String reason)static Response.StatusCodevalueOf(int statusCode)Returns the enum constant of this type with the specified name.static Response.StatusCodevalueOf(String name)Returns the enum constant of this type with the specified name.static Response.StatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final Response.StatusCode OK
-
CREATED
public static final Response.StatusCode CREATED
-
ACCEPTED
public static final Response.StatusCode ACCEPTED
-
NO_CONTENT
public static final Response.StatusCode NO_CONTENT
-
MOVED_PERMANENTLY
public static final Response.StatusCode MOVED_PERMANENTLY
-
SEE_OTHER
public static final Response.StatusCode SEE_OTHER
-
NOT_MODIFIED
public static final Response.StatusCode NOT_MODIFIED
-
TEMPORARY_REDIRECT
public static final Response.StatusCode TEMPORARY_REDIRECT
-
BAD_REQUEST
public static final Response.StatusCode BAD_REQUEST
-
UNAUTHORIZED
public static final Response.StatusCode UNAUTHORIZED
-
FORBIDDEN
public static final Response.StatusCode FORBIDDEN
-
NOT_FOUND
public static final Response.StatusCode NOT_FOUND
-
CONFLICT
public static final Response.StatusCode CONFLICT
-
INTERNAL_SERVER_ERROR
public static final Response.StatusCode INTERNAL_SERVER_ERROR
-
SERVICE_UNAVAILABLE
public static final Response.StatusCode SERVICE_UNAVAILABLE
-
SERVER_UNAVAILABLE
public static final Response.StatusCode SERVER_UNAVAILABLE
-
-
Method Detail
-
values
public static Response.StatusCode[] 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 (Response.StatusCode c : Response.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Response.StatusCode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static Response.StatusCode valueOf(int statusCode)
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:
statusCode- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-