Package org.commonjava.indy.util
Enum ApplicationStatus
- java.lang.Object
-
- java.lang.Enum<ApplicationStatus>
-
- org.commonjava.indy.util.ApplicationStatus
-
- All Implemented Interfaces:
Serializable,Comparable<ApplicationStatus>
public enum ApplicationStatus extends Enum<ApplicationStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_GATEWAYBAD_REQUESTCONFLICTCREATEDFORBIDDENFOUNDGONEMETHOD_NOT_ALLOWEDMOVED_PERMANENTLYNO_CONTENTNOT_FOUNDNOT_IMPLEMENTEDNOT_MODIFIEDOKPROXY_AUTHENTICATION_REQUIREDSERVER_ERRORUNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()static ApplicationStatusgetStatus(int status)Stringmessage()static ApplicationStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static ApplicationStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final ApplicationStatus OK
-
CREATED
public static final ApplicationStatus CREATED
-
NO_CONTENT
public static final ApplicationStatus NO_CONTENT
-
MOVED_PERMANENTLY
public static final ApplicationStatus MOVED_PERMANENTLY
-
FOUND
public static final ApplicationStatus FOUND
-
NOT_MODIFIED
public static final ApplicationStatus NOT_MODIFIED
-
BAD_REQUEST
public static final ApplicationStatus BAD_REQUEST
-
UNAUTHORIZED
public static final ApplicationStatus UNAUTHORIZED
-
GONE
public static final ApplicationStatus GONE
-
FORBIDDEN
public static final ApplicationStatus FORBIDDEN
-
NOT_FOUND
public static final ApplicationStatus NOT_FOUND
-
METHOD_NOT_ALLOWED
public static final ApplicationStatus METHOD_NOT_ALLOWED
-
PROXY_AUTHENTICATION_REQUIRED
public static final ApplicationStatus PROXY_AUTHENTICATION_REQUIRED
-
CONFLICT
public static final ApplicationStatus CONFLICT
-
SERVER_ERROR
public static final ApplicationStatus SERVER_ERROR
-
NOT_IMPLEMENTED
public static final ApplicationStatus NOT_IMPLEMENTED
-
BAD_GATEWAY
public static final ApplicationStatus BAD_GATEWAY
-
-
Method Detail
-
values
public static ApplicationStatus[] 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 (ApplicationStatus c : ApplicationStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApplicationStatus 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
-
code
public int code()
-
message
public String message()
-
getStatus
public static ApplicationStatus getStatus(int status)
-
-