org.jboss.netty.handler.codec.http
类 HttpResponseStatus

java.lang.Object
  继承者 org.jboss.netty.handler.codec.http.HttpResponseStatus
所有已实现的接口:
java.lang.Comparable<HttpResponseStatus>

public class HttpResponseStatus
extends java.lang.Object
implements java.lang.Comparable<HttpResponseStatus>

响应代码和它的HTTP描述或派生协议,如 RTSP ICAP.


字段摘要
static HttpResponseStatus ACCEPTED
          202 接受
static HttpResponseStatus BAD_GATEWAY
          502 错误网关
static HttpResponseStatus BAD_REQUEST
          400 错误请求
static HttpResponseStatus CONFLICT
          409 冲突
static HttpResponseStatus CONTINUE
          100 继续
static HttpResponseStatus CREATED
          201 创建
static HttpResponseStatus EXPECTATION_FAILED
          417 等待失败
static HttpResponseStatus FAILED_DEPENDENCY
          424 依赖失败(WebDAV, RFC4918)
static HttpResponseStatus FORBIDDEN
          403 禁止
static HttpResponseStatus FOUND
          302 找到
static HttpResponseStatus GATEWAY_TIMEOUT
          504 网关超时
static HttpResponseStatus GONE
          410 过时的
static HttpResponseStatus HTTP_VERSION_NOT_SUPPORTED
          505 HTTP版本不支持
static HttpResponseStatus INSUFFICIENT_STORAGE
          507 存储不足(WebDAV, RFC4918)
static HttpResponseStatus INTERNAL_SERVER_ERROR
          500 内部服务器错误
static HttpResponseStatus LENGTH_REQUIRED
          411 长度需求
static HttpResponseStatus LOCKED
          423 已锁 (WebDAV, RFC4918)
static HttpResponseStatus METHOD_NOT_ALLOWED
          405 方法不允许
static HttpResponseStatus MOVED_PERMANENTLY
          301 永久移除
static HttpResponseStatus MULTI_STATUS
          207 多状态(WebDAV, RFC2518)
static HttpResponseStatus MULTIPLE_CHOICES
          300 多选择
static HttpResponseStatus NO_CONTENT
          204 没有内容
static HttpResponseStatus NON_AUTHORITATIVE_INFORMATION
          203 非权威信息(自 HTTP/1.1之后)
static HttpResponseStatus NOT_ACCEPTABLE
          406 不可接受
static HttpResponseStatus NOT_EXTENDED
          510 不可扩展 (RFC2774)
static HttpResponseStatus NOT_FOUND
          404 未找到
static HttpResponseStatus NOT_IMPLEMENTED
          501 为实现
static HttpResponseStatus NOT_MODIFIED
          304 没有修改
static HttpResponseStatus OK
          200 OK
static HttpResponseStatus PARTIAL_CONTENT
          206 部分内容
static HttpResponseStatus PAYMENT_REQUIRED
          402 支付需求
static HttpResponseStatus PRECONDITION_FAILED
          412 前提失败
static HttpResponseStatus PROCESSING
          102 正在处理 (WebDAV, RFC2518)
static HttpResponseStatus PROXY_AUTHENTICATION_REQUIRED
          407 需要代理授权
static HttpResponseStatus REQUEST_ENTITY_TOO_LARGE
          413 请求实体过大
static HttpResponseStatus REQUEST_TIMEOUT
          408 请求超时
static HttpResponseStatus REQUEST_URI_TOO_LONG
          414 请求URI过长
static HttpResponseStatus REQUESTED_RANGE_NOT_SATISFIABLE
          416 请求范围不满足
static HttpResponseStatus RESET_CONTENT
          205 重置内容
static HttpResponseStatus SEE_OTHER
          303 查看其它(自 HTTP/1.1之后)
static HttpResponseStatus SERVICE_UNAVAILABLE
          503 服务不可用
static HttpResponseStatus SWITCHING_PROTOCOLS
          101 交换协议
static HttpResponseStatus TEMPORARY_REDIRECT
          307 临时重定向 (自 HTTP/1.1之后)
static HttpResponseStatus UNAUTHORIZED
          401 未授权
static HttpResponseStatus UNORDERED_COLLECTION
          425 无序集合(WebDAV, RFC3648)
static HttpResponseStatus UNPROCESSABLE_ENTITY
          422 未执行实体 (WebDAV, RFC4918)
static HttpResponseStatus UNSUPPORTED_MEDIA_TYPE
          415 不支持媒体类型
static HttpResponseStatus UPGRADE_REQUIRED
          426 需要升级(RFC2817)
static HttpResponseStatus USE_PROXY
          305 使用代理 (自 HTTP/1.1之后)
static HttpResponseStatus VARIANT_ALSO_NEGOTIATES
          506 变量需要洽商 (RFC2295)
 
构造方法摘要
HttpResponseStatus(int code, java.lang.String reasonPhrase)
          Creates a new instance with the specified code and its reasonPhrase.
 
方法摘要
 int compareTo(HttpResponseStatus o)
           
 boolean equals(java.lang.Object o)
           
 int getCode()
          Returns the code of this status.
 java.lang.String getReasonPhrase()
          Returns the reason phrase of this status.
 int hashCode()
           
 java.lang.String toString()
           
static HttpResponseStatus valueOf(int code)
          返回指定代码对应的HttpResponseStatus.如果指定的代码是一个标准的HTTP状态码,一个缓存的实例会被返回.
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

CONTINUE

public static final HttpResponseStatus CONTINUE
100 继续


SWITCHING_PROTOCOLS

public static final HttpResponseStatus SWITCHING_PROTOCOLS
101 交换协议


PROCESSING

public static final HttpResponseStatus PROCESSING
102 正在处理 (WebDAV, RFC2518)


OK

public static final HttpResponseStatus OK
200 OK


CREATED

public static final HttpResponseStatus CREATED
201 创建


ACCEPTED

public static final HttpResponseStatus ACCEPTED
202 接受


NON_AUTHORITATIVE_INFORMATION

public static final HttpResponseStatus NON_AUTHORITATIVE_INFORMATION
203 非权威信息(自 HTTP/1.1之后)


NO_CONTENT

public static final HttpResponseStatus NO_CONTENT
204 没有内容


RESET_CONTENT

public static final HttpResponseStatus RESET_CONTENT
205 重置内容


PARTIAL_CONTENT

public static final HttpResponseStatus PARTIAL_CONTENT
206 部分内容


MULTI_STATUS

public static final HttpResponseStatus MULTI_STATUS
207 多状态(WebDAV, RFC2518)


MULTIPLE_CHOICES

public static final HttpResponseStatus MULTIPLE_CHOICES
300 多选择


MOVED_PERMANENTLY

public static final HttpResponseStatus MOVED_PERMANENTLY
301 永久移除


FOUND

public static final HttpResponseStatus FOUND
302 找到


SEE_OTHER

public static final HttpResponseStatus SEE_OTHER
303 查看其它(自 HTTP/1.1之后)


NOT_MODIFIED

public static final HttpResponseStatus NOT_MODIFIED
304 没有修改


USE_PROXY

public static final HttpResponseStatus USE_PROXY
305 使用代理 (自 HTTP/1.1之后)


TEMPORARY_REDIRECT

public static final HttpResponseStatus TEMPORARY_REDIRECT
307 临时重定向 (自 HTTP/1.1之后)


BAD_REQUEST

public static final HttpResponseStatus BAD_REQUEST
400 错误请求


UNAUTHORIZED

public static final HttpResponseStatus UNAUTHORIZED
401 未授权


PAYMENT_REQUIRED

public static final HttpResponseStatus PAYMENT_REQUIRED
402 支付需求


FORBIDDEN

public static final HttpResponseStatus FORBIDDEN
403 禁止


NOT_FOUND

public static final HttpResponseStatus NOT_FOUND
404 未找到


METHOD_NOT_ALLOWED

public static final HttpResponseStatus METHOD_NOT_ALLOWED
405 方法不允许


NOT_ACCEPTABLE

public static final HttpResponseStatus NOT_ACCEPTABLE
406 不可接受


PROXY_AUTHENTICATION_REQUIRED

public static final HttpResponseStatus PROXY_AUTHENTICATION_REQUIRED
407 需要代理授权


REQUEST_TIMEOUT

public static final HttpResponseStatus REQUEST_TIMEOUT
408 请求超时


CONFLICT

public static final HttpResponseStatus CONFLICT
409 冲突


GONE

public static final HttpResponseStatus GONE
410 过时的


LENGTH_REQUIRED

public static final HttpResponseStatus LENGTH_REQUIRED
411 长度需求


PRECONDITION_FAILED

public static final HttpResponseStatus PRECONDITION_FAILED
412 前提失败


REQUEST_ENTITY_TOO_LARGE

public static final HttpResponseStatus REQUEST_ENTITY_TOO_LARGE
413 请求实体过大


REQUEST_URI_TOO_LONG

public static final HttpResponseStatus REQUEST_URI_TOO_LONG
414 请求URI过长


UNSUPPORTED_MEDIA_TYPE

public static final HttpResponseStatus UNSUPPORTED_MEDIA_TYPE
415 不支持媒体类型


REQUESTED_RANGE_NOT_SATISFIABLE

public static final HttpResponseStatus REQUESTED_RANGE_NOT_SATISFIABLE
416 请求范围不满足


EXPECTATION_FAILED

public static final HttpResponseStatus EXPECTATION_FAILED
417 等待失败


UNPROCESSABLE_ENTITY

public static final HttpResponseStatus UNPROCESSABLE_ENTITY
422 未执行实体 (WebDAV, RFC4918)


LOCKED

public static final HttpResponseStatus LOCKED
423 已锁 (WebDAV, RFC4918)


FAILED_DEPENDENCY

public static final HttpResponseStatus FAILED_DEPENDENCY
424 依赖失败(WebDAV, RFC4918)


UNORDERED_COLLECTION

public static final HttpResponseStatus UNORDERED_COLLECTION
425 无序集合(WebDAV, RFC3648)


UPGRADE_REQUIRED

public static final HttpResponseStatus UPGRADE_REQUIRED
426 需要升级(RFC2817)


INTERNAL_SERVER_ERROR

public static final HttpResponseStatus INTERNAL_SERVER_ERROR
500 内部服务器错误


NOT_IMPLEMENTED

public static final HttpResponseStatus NOT_IMPLEMENTED
501 为实现


BAD_GATEWAY

public static final HttpResponseStatus BAD_GATEWAY
502 错误网关


SERVICE_UNAVAILABLE

public static final HttpResponseStatus SERVICE_UNAVAILABLE
503 服务不可用


GATEWAY_TIMEOUT

public static final HttpResponseStatus GATEWAY_TIMEOUT
504 网关超时


HTTP_VERSION_NOT_SUPPORTED

public static final HttpResponseStatus HTTP_VERSION_NOT_SUPPORTED
505 HTTP版本不支持


VARIANT_ALSO_NEGOTIATES

public static final HttpResponseStatus VARIANT_ALSO_NEGOTIATES
506 变量需要洽商 (RFC2295)


INSUFFICIENT_STORAGE

public static final HttpResponseStatus INSUFFICIENT_STORAGE
507 存储不足(WebDAV, RFC4918)


NOT_EXTENDED

public static final HttpResponseStatus NOT_EXTENDED
510 不可扩展 (RFC2774)

构造方法详细信息

HttpResponseStatus

public HttpResponseStatus(int code,
                          java.lang.String reasonPhrase)
Creates a new instance with the specified code and its reasonPhrase.

方法详细信息

valueOf

public static HttpResponseStatus valueOf(int code)
返回指定代码对应的HttpResponseStatus.如果指定的代码是一个标准的HTTP状态码,一个缓存的实例会被返回. 否则,返回一个新的实例.


getCode

public int getCode()
Returns the code of this status.


getReasonPhrase

public java.lang.String getReasonPhrase()
Returns the reason phrase of this status.


hashCode

public int hashCode()
覆盖:
java.lang.Object 中的 hashCode

equals

public boolean equals(java.lang.Object o)
覆盖:
java.lang.Object 中的 equals

compareTo

public int compareTo(HttpResponseStatus o)
指定者:
接口 java.lang.Comparable<HttpResponseStatus> 中的 compareTo

toString

public java.lang.String toString()
覆盖:
java.lang.Object 中的 toString