类 SimpleHttpStatusCode
java.lang.Object
cn.taketoday.http.SimpleHttpStatusCode
- 所有已实现的接口:
HttpStatusCode,Serializable,Comparable<HttpStatusCode>
final class SimpleHttpStatusCode
extends Object
implements HttpStatusCode, Comparable<HttpStatusCode>, Serializable
Simple implementation of
HttpStatusCode.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intbooleaninthashCode()private inthundreds()booleanWhether this status code is in the Informational class (1xx).booleanWhether this status code is in the Successful class (2xx).booleanWhether this status code is in the Redirection class (3xx).booleanWhether this status code is in the Client Error class (4xx).booleanWhether this status code is in the Server Error class (5xx).booleanisError()Whether this status code is in the Client or Server Error classtoString()intvalue()Return the integer value of this status code.从接口继承的方法 cn.taketoday.http.HttpStatusCode
isSameCodeAs
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
value
private final int value
-
-
构造器详细资料
-
SimpleHttpStatusCode
public SimpleHttpStatusCode(int value)
-
-
方法详细资料
-
value
public int value()从接口复制的说明:HttpStatusCodeReturn the integer value of this status code.- 指定者:
value在接口中HttpStatusCode
-
is1xxInformational
public boolean is1xxInformational()从接口复制的说明:HttpStatusCodeWhether this status code is in the Informational class (1xx).- 指定者:
is1xxInformational在接口中HttpStatusCode- 另请参阅:
-
is2xxSuccessful
public boolean is2xxSuccessful()从接口复制的说明:HttpStatusCodeWhether this status code is in the Successful class (2xx).- 指定者:
is2xxSuccessful在接口中HttpStatusCode- 另请参阅:
-
is3xxRedirection
public boolean is3xxRedirection()从接口复制的说明:HttpStatusCodeWhether this status code is in the Redirection class (3xx).- 指定者:
is3xxRedirection在接口中HttpStatusCode- 另请参阅:
-
is4xxClientError
public boolean is4xxClientError()从接口复制的说明:HttpStatusCodeWhether this status code is in the Client Error class (4xx).- 指定者:
is4xxClientError在接口中HttpStatusCode- 另请参阅:
-
is5xxServerError
public boolean is5xxServerError()从接口复制的说明:HttpStatusCodeWhether this status code is in the Server Error class (5xx).- 指定者:
is5xxServerError在接口中HttpStatusCode- 另请参阅:
-
isError
public boolean isError()从接口复制的说明:HttpStatusCodeWhether this status code is in the Client or Server Error class- 指定者:
isError在接口中HttpStatusCode- 另请参阅:
-
hundreds
private int hundreds() -
compareTo
- 指定者:
compareTo在接口中Comparable<HttpStatusCode>
-
hashCode
public int hashCode() -
equals
-
toString
-