|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||
java.lang.Objectjava.lang.Enum<HttpStatus>
cn.dreampie.common.http.result.HttpStatus
public enum HttpStatus
Created by ice on 14-12-19.
| 嵌套类摘要 | |
|---|---|
static class |
HttpStatus.Descriptor
|
| 枚举常量摘要 | |
|---|---|
ACCEPTED
202 Accepted. |
|
BAD_GATEWAY
502 Bad Gateway. |
|
BAD_REQUEST
400 Bad Request. |
|
CONFLICT
409 Conflict. |
|
CONTINUE
100 Continue. |
|
CREATED
201 Created. |
|
EXPECTATION_FAILED
417 Expectation Failed. |
|
FAILED_DEPENDENCY
424 Failed Dependency. |
|
FORBIDDEN
403 Forbidden. |
|
FOUND
302 Found. |
|
GATEWAY_TIMEOUT
504 Gateway Timeout. |
|
GONE
410 Gone. |
|
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported. |
|
I_AM_A_TEAPOT
418 I'm a teapot. |
|
INTERNAL_SERVER_ERROR
500 Internal Server Error. |
|
LENGTH_REQUIRED
411 Length Required. |
|
LOCKED
423 Locked. |
|
METHOD_NOT_ALLOWED
405 Method Not Allowed. |
|
MOVED_PERMANENTLY
301 Moved Permanently. |
|
MULTIPLE_CHOICES
300 Multiple Choices. |
|
NO_CONTENT
204 No Content. |
|
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information. |
|
NOT_ACCEPTABLE
406 Not Acceptable. |
|
NOT_FOUND
404 Not Found. |
|
NOT_IMPLEMENTED
501 Not Implemented. |
|
NOT_MODIFIED
304 Not Modified. |
|
OK
200 OK. |
|
PARTIAL_CONTENT
206 Partial Content. |
|
PAYMENT_REQUIRED
402 Payment Required. |
|
PRECONDITION_FAILED
412 Precondition failed. |
|
PRECONDITION_REQUIRED
428 Precondition Required. |
|
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required. |
|
REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large. |
|
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large. |
|
REQUEST_TIMEOUT
408 Request Timeout. |
|
REQUEST_URI_TOO_LONG
414 Request-URI Too Long. |
|
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable. |
|
RESET_CONTENT
205 Reset Content. |
|
SEE_OTHER
303 See Other. |
|
SERVICE_UNAVAILABLE
503 Service Unavailable. |
|
SWITCHING_PROTOCOLS
101 Switching Protocols. |
|
TEMPORARY_REDIRECT
307 Temporary Redirect. |
|
TOO_MANY_REQUESTS
429 Too Many Requests. |
|
UNAUTHORIZED
401 Unauthorized. |
|
UNPROCESSABLE_ENTITY
422 Unprocessable Entity. |
|
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type. |
|
USE_PROXY
305 Use Proxy. |
|
| 方法摘要 | |
|---|---|
HttpStatus.Descriptor |
createDescriptor()
|
int |
getCode()
|
String |
getDesc()
|
static HttpStatus |
havingCode(int code)
|
static HttpStatus |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。 |
static HttpStatus[] |
values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。 |
| 从类 java.lang.Enum 继承的方法 |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| 从类 java.lang.Object 继承的方法 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 枚举常量详细信息 |
|---|
public static final HttpStatus CONTINUE
100 Continue.
public static final HttpStatus SWITCHING_PROTOCOLS
101 Switching Protocols.
public static final HttpStatus OK
200 OK.
public static final HttpStatus CREATED
201 Created.
public static final HttpStatus ACCEPTED
202 Accepted.
public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information.
public static final HttpStatus NO_CONTENT
204 No Content.
public static final HttpStatus RESET_CONTENT
205 Reset Content.
public static final HttpStatus PARTIAL_CONTENT
206 Partial Content.
public static final HttpStatus MULTIPLE_CHOICES
300 Multiple Choices.
public static final HttpStatus MOVED_PERMANENTLY
301 Moved Permanently.
public static final HttpStatus FOUND
302 Found.
public static final HttpStatus SEE_OTHER
303 See Other.
public static final HttpStatus NOT_MODIFIED
304 Not Modified.
public static final HttpStatus USE_PROXY
305 Use Proxy.
public static final HttpStatus TEMPORARY_REDIRECT
307 Temporary Redirect.
public static final HttpStatus BAD_REQUEST
400 Bad Request.
public static final HttpStatus UNAUTHORIZED
401 Unauthorized.
public static final HttpStatus PAYMENT_REQUIRED
402 Payment Required.
public static final HttpStatus FORBIDDEN
403 Forbidden.
public static final HttpStatus NOT_FOUND
404 Not Found.
public static final HttpStatus METHOD_NOT_ALLOWED
405 Method Not Allowed.
public static final HttpStatus NOT_ACCEPTABLE
406 Not Acceptable.
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required.
public static final HttpStatus REQUEST_TIMEOUT
408 Request Timeout.
public static final HttpStatus CONFLICT
409 Conflict.
public static final HttpStatus GONE
410 Gone.
public static final HttpStatus LENGTH_REQUIRED
411 Length Required.
public static final HttpStatus PRECONDITION_FAILED
412 Precondition failed.
public static final HttpStatus REQUEST_ENTITY_TOO_LARGE
413 Request Entity Too Large.
public static final HttpStatus REQUEST_URI_TOO_LONG
414 Request-URI Too Long.
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type.
public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable.
public static final HttpStatus EXPECTATION_FAILED
417 Expectation Failed.
public static final HttpStatus I_AM_A_TEAPOT
418 I'm a teapot.
RFC 2324
public static final HttpStatus UNPROCESSABLE_ENTITY
422 Unprocessable Entity.
public static final HttpStatus LOCKED
423 Locked.
public static final HttpStatus FAILED_DEPENDENCY
424 Failed Dependency.
public static final HttpStatus PRECONDITION_REQUIRED
428 Precondition Required.
public static final HttpStatus TOO_MANY_REQUESTS
429 Too Many Requests.
public static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large.
public static final HttpStatus INTERNAL_SERVER_ERROR
500 Internal Server Error.
public static final HttpStatus NOT_IMPLEMENTED
501 Not Implemented.
public static final HttpStatus BAD_GATEWAY
502 Bad Gateway.
public static final HttpStatus SERVICE_UNAVAILABLE
503 Service Unavailable.
public static final HttpStatus GATEWAY_TIMEOUT
504 Gateway Timeout.
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported.
| 方法详细信息 |
|---|
public static HttpStatus[] values()
for (HttpStatus c : HttpStatus.values()) System.out.println(c);
public static HttpStatus valueOf(String name)
name - 要返回的枚举常量的名称。
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentExceptionpublic static HttpStatus havingCode(int code)
public int getCode()
public String getDesc()
public HttpStatus.Descriptor createDescriptor()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 枚举常量 | 字段 | 方法 | 详细信息: 枚举常量 | 字段 | 方法 | |||||||||