方法概要
所有方法 静态方法 实例方法 具体方法
boolean
boolean
boolean
boolean
boolean
boolean
int
Returns the enum constant of this class with the specified name.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
枚举常量详细资料
SWITCHING_PROTOCOLS
public static final HttpStatus SWITCHING_PROTOCOLS
PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
PRECONDITION_FAILED
public static final HttpStatus PRECONDITION_FAILED
REQUEST_ENTITY_TOO_LARGE
已过时。
REQUEST_URI_TOO_LONG
已过时。
REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
INSUFFICIENT_SPACE_ON_RESOURCE
已过时。
UNPROCESSABLE_ENTITY
public static final HttpStatus UNPROCESSABLE_ENTITY
PRECONDITION_REQUIRED
public static final HttpStatus PRECONDITION_REQUIRED
UNAVAILABLE_FOR_LEGAL_REASONS
public static final HttpStatus UNAVAILABLE_FOR_LEGAL_REASONS
INTERNAL_SERVER_ERROR
public static final HttpStatus INTERNAL_SERVER_ERROR
SERVICE_UNAVAILABLE
public static final HttpStatus SERVICE_UNAVAILABLE
HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
VARIANT_ALSO_NEGOTIATES
public static final HttpStatus VARIANT_ALSO_NEGOTIATES
INSUFFICIENT_STORAGE
public static final HttpStatus INSUFFICIENT_STORAGE
BANDWIDTH_LIMIT_EXCEEDED
public static final HttpStatus BANDWIDTH_LIMIT_EXCEEDED
NETWORK_AUTHENTICATION_REQUIRED
public static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
方法详细资料
values
Returns an array containing the constants of this enum class, in
the order they are declared.
返回:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - 如果参数为空值
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
参数:
statusCode - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
IllegalArgumentException - if this enum class has no constant with the specified name
NullPointerException - 如果参数为空值
resolve
@Nullable
public static HttpStatus resolve (int statusCode)
getReasonPhrase
public String getReasonPhrase ()
is2xxSuccessful
public boolean is2xxSuccessful ()
is3xxRedirection
public boolean is3xxRedirection ()
is4xxClientError
public boolean is4xxClientError ()
is5xxServerError
public boolean is5xxServerError ()
isError
public boolean isError ()