Package org.dmfs.httpessentials.status
Class NoneHttpStatus
java.lang.Object
org.dmfs.httpessentials.status.NoneHttpStatus
- All Implemented Interfaces:
HttpStatus
Represents an
HttpStatus for "no status".-
Field Summary
Fields inherited from interface org.dmfs.httpessentials.HttpStatus
ACCEPTED, BAD_GATEWAY, BAD_REQUEST, CONFLICT, CONTINUE, CREATED, EXPECTATION_FAILED, FAILED_DEPENDENCY, FORBIDDEN, FOUND, GATEWAY_TIMEOUT, GONE, HTTP_VERSION_NOT_SUPPORTED, INSUFFICIENT_STORAGE, INTERNAL_SERVER_ERROR, LENGTH_REQUIRED, LOCKED, METHOD_NOT_ALLOWED, MOVED_PERMANENTLY, MULTIPLE_CHOICES, MULTISTATUS, NO_CONTENT, NON_AUTHORITATIVE_INFORMATION, NONE, NOT_ACCEPTABLE, NOT_FOUND, NOT_IMPLEMENTED, NOT_MODIFIED, OK, PARTIAL_CONTENT, PAYLOAD_TOO_LARGE, PAYMENT_REQUIRED, PERMANENT_REDIRECT, PRECONDITION_FAILED, PROCESSING, PROXY_AUTHENTICATION_REQUIRED, REQUEST_ENTITY_TOO_LARGE, REQUEST_TIMEOUT, REQUEST_URI_TOO_LONG, RESET_CONTENT, SEE_OTHER, SERVICE_UNAVAILABLE, SWITCHING_PROTOCOLS, TEMPORARY_REDIRECT, UNAUTHORIZED, UNPROCESSABLE_ENTITY, UNSUPPORTED_MEDIA_TYPE, UPGRADE_REQUIRED, URI_TOO_LONG, USE_PROXY, VARIANT_ALSO_NEGOTIATES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanReturns whether this status represents a client error status code.booleanReturns whether this represents an informational status code.booleanReturns whether this status represents a redirection status code.booleanReturns whether this status represents a server error status code.booleanReturns whether this status represents a success status code.reason()Returns the reason phrase of this status code.intReturns the status code.toString()
-
Constructor Details
-
NoneHttpStatus
public NoneHttpStatus()Creates anHttpStatusthat represents a non existing status.
-
-
Method Details
-
statusCode
public int statusCode()Description copied from interface:HttpStatusReturns the status code.- Specified by:
statusCodein interfaceHttpStatus- Returns:
-
reason
Description copied from interface:HttpStatusReturns the reason phrase of this status code.Note: the reason phrase doesn't contain the status code itself.
- Specified by:
reasonin interfaceHttpStatus- Returns:
- The reason phrase or
nullif the status code is unknown.
-
isInformational
public boolean isInformational()Description copied from interface:HttpStatusReturns whether this represents an informational status code.- Specified by:
isInformationalin interfaceHttpStatus- Returns:
trueif this represents an informational status code,falseotherwise.
-
isSuccess
public boolean isSuccess()Description copied from interface:HttpStatusReturns whether this status represents a success status code.- Specified by:
isSuccessin interfaceHttpStatus- Returns:
trueif this represents a success status code,falseotherwise.
-
isRedirect
public boolean isRedirect()Description copied from interface:HttpStatusReturns whether this status represents a redirection status code.- Specified by:
isRedirectin interfaceHttpStatus- Returns:
trueif this represents a redirection status code,falseotherwise.
-
isClientError
public boolean isClientError()Description copied from interface:HttpStatusReturns whether this status represents a client error status code.- Specified by:
isClientErrorin interfaceHttpStatus- Returns:
trueif this represents a client error status code,falseotherwise.
-
isServerError
public boolean isServerError()Description copied from interface:HttpStatusReturns whether this status represents a server error status code.- Specified by:
isServerErrorin interfaceHttpStatus- Returns:
trueif this represents a server error status code,falseotherwise.
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceHttpStatus- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceHttpStatus- Overrides:
equalsin classObject
-
toString
-