Package net.officefloor.server.http
Class HttpStatus
java.lang.Object
net.officefloor.server.http.HttpStatus
HTTP status.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpStatusHTTP 202 Accepted status.static final HttpStatusHTTP 502 Bad Gateway status.static final HttpStatusHTTP 400 Bad Request status.static final HttpStatusHTTP 409 Conflict status.static final HttpStatusHTTP 100 Continue status.static final HttpStatusHTTP 201 Created status.static final HttpStatusHTTP 417 Expectation Failed status.static final HttpStatusHTTP 403 Forbidden status.static final HttpStatusHTTP 302 Found status.static final HttpStatusHTTP 504 Gateway Time-Out status.static final HttpStatusHTTP 410 Gone status.static final HttpStatusHTTP 505 HTTP Version Not Supported status.static final HttpStatusHTTP 500 Internal Server Error status.static final HttpStatusHTTP 411 Length Required status.static final HttpStatusHTTP 405 Method Not Allowed status.static final HttpStatusHTTP 301 Moved Permanently status.static final HttpStatusHTTP 300 Multiple Choices status.static final HttpStatusHTTP 204 No Content status.static final HttpStatusHTTP 203 Non-Authoritative Information status.static final HttpStatusHTTP 406 Not Acceptable status.static final HttpStatusHTTP 404 Not Found status.static final HttpStatusHTTP 501 Not Implemented status.static final HttpStatusHTTP 304 Not Modified status.static final HttpStatusHTTP 200 OK status.static final HttpStatusHTTP 206 Partial Content status.static final HttpStatusHTTP 402 Payment Required status.static final HttpStatusHTTP 412 Precondition Failed status.static final HttpStatusHTTP 407 Proxy Authentication Required status.static final HttpStatusHTTP 413 Request Entity Too Large status.static final HttpStatusHTTP 408 Request Time-Out status.static final HttpStatusHTTP 414 Request-URI Too Large status.static final HttpStatusHTTP 416 Requested Range Not Satisfiable status.static final HttpStatusHTTP 205 Reset Content status.static final HttpStatusHTTP 303 See Other status.static final HttpStatusHTTP 503 Service Unavailable status.static final HttpStatusHTTP 101 Switching Protocols status.static final HttpStatusHTTP 307 Temporary Redirect status.static final HttpStatusHTTP 401 Unauthorized status.static final HttpStatusHTTP 415 Unsupported Media Type status.static final HttpStatusHTTP 305 Use Proxy status. -
Constructor Summary
ConstructorsConstructorDescriptionHttpStatus(int statusCode, String statusMessage) Instantiate a dynamicHttpStatus. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEnum()Obtains theHttpStatus.HttpStatusEnumfor thisHttpVersion.static HttpStatusgetHttpStatus(int statusCode) Obtains theHttpStatusfor the status code.intObtains the status code.Obtains the status message.inthashCode()booleanisEqual(HttpStatus httpStatus) Equals without the type checking.toString()<B> voidwrite(StreamBuffer<B> head, StreamBufferPool<B> bufferPool) Writes thisHttpStatusto theStreamBuffer.
-
Field Details
-
CONTINUE
HTTP 100 Continue status. -
SWITCHING_PROTOCOLS
HTTP 101 Switching Protocols status. -
OK
HTTP 200 OK status. -
CREATED
HTTP 201 Created status. -
ACCEPTED
HTTP 202 Accepted status. -
NON_AUTHORITATIVE_INFORMATION
HTTP 203 Non-Authoritative Information status. -
NO_CONTENT
HTTP 204 No Content status. -
RESET_CONTENT
HTTP 205 Reset Content status. -
PARTIAL_CONTENT
HTTP 206 Partial Content status. -
MULTIPLE_CHOICES
HTTP 300 Multiple Choices status. -
MOVED_PERMANENTLY
HTTP 301 Moved Permanently status. -
FOUND
HTTP 302 Found status. -
SEE_OTHER
HTTP 303 See Other status. -
NOT_MODIFIED
HTTP 304 Not Modified status. -
USE_PROXY
HTTP 305 Use Proxy status. -
TEMPORARY_REDIRECT
HTTP 307 Temporary Redirect status. -
BAD_REQUEST
HTTP 400 Bad Request status. -
UNAUTHORIZED
HTTP 401 Unauthorized status. -
PAYMENT_REQUIRED
HTTP 402 Payment Required status. -
FORBIDDEN
HTTP 403 Forbidden status. -
NOT_FOUND
HTTP 404 Not Found status. -
METHOD_NOT_ALLOWED
HTTP 405 Method Not Allowed status. -
NOT_ACCEPTABLE
HTTP 406 Not Acceptable status. -
PROXY_AUTHENTICATION_REQUIRED
HTTP 407 Proxy Authentication Required status. -
REQUEST_TIME_OUT
HTTP 408 Request Time-Out status. -
CONFLICT
HTTP 409 Conflict status. -
GONE
HTTP 410 Gone status. -
LENGTH_REQUIRED
HTTP 411 Length Required status. -
PRECONDITION_FAILED
HTTP 412 Precondition Failed status. -
REQUEST_ENTITY_TOO_LARGE
HTTP 413 Request Entity Too Large status. -
REQUEST_URI_TOO_LARGE
HTTP 414 Request-URI Too Large status. -
UNSUPPORTED_MEDIA_TYPE
HTTP 415 Unsupported Media Type status. -
REQUESTED_RANGE_NOT_SATISFIABLE
HTTP 416 Requested Range Not Satisfiable status. -
EXPECTATION_FAILED
HTTP 417 Expectation Failed status. -
INTERNAL_SERVER_ERROR
HTTP 500 Internal Server Error status. -
NOT_IMPLEMENTED
HTTP 501 Not Implemented status. -
BAD_GATEWAY
HTTP 502 Bad Gateway status. -
SERVICE_UNAVAILABLE
HTTP 503 Service Unavailable status. -
GATEWAY_TIME_OUT
HTTP 504 Gateway Time-Out status. -
HTTP_VERSION_NOT_SUPPORTED
HTTP 505 HTTP Version Not Supported status.
-
-
Constructor Details
-
HttpStatus
Instantiate a dynamicHttpStatus.- Parameters:
statusCode- Status code.statusMessage- Status message.
-
-
Method Details
-
getHttpStatus
Obtains theHttpStatusfor the status code.- Parameters:
statusCode- Status code.- Returns:
HttpStatus.
-
isEqual
Equals without the type checking.- Parameters:
httpStatus-HttpStatus.- Returns:
trueif sameHttpStatus.
-
getEnum
Obtains theHttpStatus.HttpStatusEnumfor thisHttpVersion.- Returns:
HttpStatus.HttpStatusEnum.
-
getStatusCode
public int getStatusCode()Obtains the status code.- Returns:
- Status code.
-
getStatusMessage
Obtains the status message.- Returns:
- Status message.
-
write
Writes thisHttpStatusto theStreamBuffer.- Type Parameters:
B- Buffer type.- Parameters:
head- HeadStreamBufferof the linked list ofStreamBufferinstances.bufferPool-StreamBufferPool.
-
hashCode
public int hashCode() -
equals
-
toString
-