Package net.officefloor.server.http
Enum HttpStatus.HttpStatusEnum
- java.lang.Object
-
- java.lang.Enum<HttpStatus.HttpStatusEnum>
-
- net.officefloor.server.http.HttpStatus.HttpStatusEnum
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpStatus.HttpStatusEnum>
- Enclosing class:
- HttpStatus
public static enum HttpStatus.HttpStatusEnum extends java.lang.Enum<HttpStatus.HttpStatusEnum>
HttpStatus
Enum
.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpStatus
getHttpStatus()
Obtains the singletonHttpStatus
for thisHttpStatus.HttpStatusEnum
.static HttpStatus.HttpStatusEnum
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpStatus.HttpStatusEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONTINUE
public static final HttpStatus.HttpStatusEnum CONTINUE
1xx
-
SWITCHING_PROTOCOLS
public static final HttpStatus.HttpStatusEnum SWITCHING_PROTOCOLS
-
OK
public static final HttpStatus.HttpStatusEnum OK
2xx
-
CREATED
public static final HttpStatus.HttpStatusEnum CREATED
-
ACCEPTED
public static final HttpStatus.HttpStatusEnum ACCEPTED
-
NON_AUTHORITATIVE_INFORMATION
public static final HttpStatus.HttpStatusEnum NON_AUTHORITATIVE_INFORMATION
-
NO_CONTENT
public static final HttpStatus.HttpStatusEnum NO_CONTENT
-
RESET_CONTENT
public static final HttpStatus.HttpStatusEnum RESET_CONTENT
-
PARTIAL_CONTENT
public static final HttpStatus.HttpStatusEnum PARTIAL_CONTENT
-
MULTIPLE_CHOICES
public static final HttpStatus.HttpStatusEnum MULTIPLE_CHOICES
3xx
-
MOVED_PERMANENTLY
public static final HttpStatus.HttpStatusEnum MOVED_PERMANENTLY
-
FOUND
public static final HttpStatus.HttpStatusEnum FOUND
-
SEE_OTHER
public static final HttpStatus.HttpStatusEnum SEE_OTHER
-
NOT_MODIFIED
public static final HttpStatus.HttpStatusEnum NOT_MODIFIED
-
USE_PROXY
public static final HttpStatus.HttpStatusEnum USE_PROXY
-
TEMPORARY_REDIRECT
public static final HttpStatus.HttpStatusEnum TEMPORARY_REDIRECT
-
BAD_REQUEST
public static final HttpStatus.HttpStatusEnum BAD_REQUEST
4xx
-
UNAUTHORIZED
public static final HttpStatus.HttpStatusEnum UNAUTHORIZED
-
PAYMENT_REQUIRED
public static final HttpStatus.HttpStatusEnum PAYMENT_REQUIRED
-
FORBIDDEN
public static final HttpStatus.HttpStatusEnum FORBIDDEN
-
NOT_FOUND
public static final HttpStatus.HttpStatusEnum NOT_FOUND
-
METHOD_NOT_ALLOWED
public static final HttpStatus.HttpStatusEnum METHOD_NOT_ALLOWED
-
NOT_ACCEPTABLE
public static final HttpStatus.HttpStatusEnum NOT_ACCEPTABLE
-
PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus.HttpStatusEnum PROXY_AUTHENTICATION_REQUIRED
-
REQUEST_TIME_OUT
public static final HttpStatus.HttpStatusEnum REQUEST_TIME_OUT
-
CONFLICT
public static final HttpStatus.HttpStatusEnum CONFLICT
-
GONE
public static final HttpStatus.HttpStatusEnum GONE
-
LENGTH_REQUIRED
public static final HttpStatus.HttpStatusEnum LENGTH_REQUIRED
-
PRECONDITION_FAILED
public static final HttpStatus.HttpStatusEnum PRECONDITION_FAILED
-
REQUEST_ENTITY_TOO_LARGE
public static final HttpStatus.HttpStatusEnum REQUEST_ENTITY_TOO_LARGE
-
REQUEST_URI_TOO_LARGE
public static final HttpStatus.HttpStatusEnum REQUEST_URI_TOO_LARGE
-
UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus.HttpStatusEnum UNSUPPORTED_MEDIA_TYPE
-
REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatus.HttpStatusEnum REQUESTED_RANGE_NOT_SATISFIABLE
-
EXPECTATION_FAILED
public static final HttpStatus.HttpStatusEnum EXPECTATION_FAILED
-
INTERNAL_SERVER_ERROR
public static final HttpStatus.HttpStatusEnum INTERNAL_SERVER_ERROR
5xx
-
NOT_IMPLEMENTED
public static final HttpStatus.HttpStatusEnum NOT_IMPLEMENTED
-
BAD_GATEWAY
public static final HttpStatus.HttpStatusEnum BAD_GATEWAY
-
SERVICE_UNAVAILABLE
public static final HttpStatus.HttpStatusEnum SERVICE_UNAVAILABLE
-
GATEWAY_TIME_OUT
public static final HttpStatus.HttpStatusEnum GATEWAY_TIME_OUT
-
HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus.HttpStatusEnum HTTP_VERSION_NOT_SUPPORTED
-
OTHER
public static final HttpStatus.HttpStatusEnum OTHER
Non standardHttpStatus
.
-
-
Method Detail
-
values
public static HttpStatus.HttpStatusEnum[] 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 (HttpStatus.HttpStatusEnum c : HttpStatus.HttpStatusEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpStatus.HttpStatusEnum 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
-
getHttpStatus
public HttpStatus getHttpStatus()
Obtains the singleton
HttpStatus
for thisHttpStatus.HttpStatusEnum
.Note for
OTHER
this returnsnull
.- Returns:
HttpVersion
.
-
-