Package com.dnlkk.controller.http
Enum Class HttpStatus
- All Implemented Interfaces:
HttpStatusCode,Serializable,Comparable<HttpStatus>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintcode()booleanbooleanisError()booleanbooleanbooleanbooleanstatic HttpStatusresolve(int statusCode) toString()static HttpStatusvalueOf(int statusCode) Returns the enum constant of this class with the specified name.static HttpStatusReturns the enum constant of this class with the specified name.static HttpStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface com.dnlkk.controller.http.HttpStatusCode
equalsCode
-
Enum Constant Details
-
CONTINUE
-
OK
-
CREATED
-
ACCEPTED
-
NO_CONTENT
-
MULTIPLE_CHOICES
-
MOVED_PERMANENTLY
-
FOUND
-
SEE_OTHER
-
NOT_MODIFIED
-
TEMPORARY_REDIRECT
-
PERMANENT_REDIRECT
-
BAD_REQUEST
-
UNAUTHORIZED
-
PAYMENT_REQUIRED
-
FORBIDDEN
-
NOT_FOUND
-
METHOD_NOT_ALLOWED
-
NOT_ACCEPTABLE
-
REQUEST_TIMEOUT
-
CONFLICT
-
I_AM_A_TEAPOT
-
TOO_MANY_REQUESTS
-
UNAVAILABLE_FOR_LEGAL_REASONS
-
DNLKK_TRIED_SO_HARD
-
INTERNAL_SERVER_ERROR
-
NOT_IMPLEMENTED
-
BAD_GATEWAY
-
SERVICE_UNAVAILABLE
-
GATEWAY_TIMEOUT
-
HTTP_VERSION_NOT_SUPPORTED
-
NETWORK_AUTHENTICATION_REQUIRED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()- Specified by:
codein interfaceHttpStatusCode
-
getStatusType
-
getReasonPhrase
-
isInformational
public boolean isInformational()- Specified by:
isInformationalin interfaceHttpStatusCode
-
isSuccessful
public boolean isSuccessful()- Specified by:
isSuccessfulin interfaceHttpStatusCode
-
isRedirection
public boolean isRedirection()- Specified by:
isRedirectionin interfaceHttpStatusCode
-
isClientError
public boolean isClientError()- Specified by:
isClientErrorin interfaceHttpStatusCode
-
isServerError
public boolean isServerError()- Specified by:
isServerErrorin interfaceHttpStatusCode
-
isError
public boolean isError()- Specified by:
isErrorin interfaceHttpStatusCode
-
toString
- Overrides:
toStringin classEnum<HttpStatus>
-
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.)- Parameters:
statusCode- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
resolve
-