|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.common.http.HttpStatus
public class HttpStatus
HTTP status codes and a helper methods.
Constructor Summary | |
---|---|
protected |
HttpStatus(int code,
java.lang.String message)
Deprecated. |
Method Summary | |
---|---|
HttpStatus |
clone()
|
HttpStatus |
duplicate(java.lang.String message)
Duplicates this status with another status message. |
boolean |
equals(java.lang.Object httpStatus)
|
int |
getCode()
Gets the status code. |
java.lang.String |
getMessage()
Gets the status message. |
java.lang.String |
getStatusLine()
Gets the status line like HTTP/1.1 404 Not Found . |
int |
hashCode()
|
boolean |
isError()
Is this an error status. |
java.lang.String |
toString()
|
static HttpStatus |
valueOf(int code)
Gets HttpStatus for given status code. |
static HttpStatus |
valueOfStatusLine(java.lang.String statusLine)
Gets HttpStatus for given status line. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HttpStatus CONTINUE
public static final HttpStatus SWITCHING_PROTOCOLS
public static final HttpStatus PROCESSING
public static final HttpStatus OK
public static final HttpStatus CREATED
public static final HttpStatus ACCEPTED
public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
public static final HttpStatus NO_CONTENT
public static final HttpStatus RESET_CONTENT
public static final HttpStatus PARTIAL_CONTENT
public static final HttpStatus MULTI_STATUS
public static final HttpStatus MULTIPLE_CHOICES
public static final HttpStatus MOVED_PERMANENTLY
public static final HttpStatus FOUND
public static final HttpStatus SEE_OTHER
public static final HttpStatus NOT_MODIFIED
public static final HttpStatus USE_PROXY
public static final HttpStatus TEMPORARY_REDIRECT
public static final HttpStatus BAD_REQUEST
public static final HttpStatus UNAUTHORIZED
public static final HttpStatus PAYMENT_REQUIRED
public static final HttpStatus FORBIDDEN
public static final HttpStatus NOT_FOUND
public static final HttpStatus METHOD_NOT_ALLOWED
public static final HttpStatus NOT_ACCEPTABLE
public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
public static final HttpStatus REQUEST_TIMEOUT
public static final HttpStatus CONFLICT
public static final HttpStatus GONE
public static final HttpStatus LENGTH_REQUIRED
public static final HttpStatus PRECONDITION_FAILED
public static final HttpStatus REQUEST_TOO_LONG
public static final HttpStatus REQUEST_URI_TOO_LONG
public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
public static final HttpStatus EXPECTATION_FAILED
public static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE
public static final HttpStatus METHOD_FAILURE
public static final HttpStatus UNPROCESSABLE_ENTITY
public static final HttpStatus LOCKED
public static final HttpStatus FAILED_DEPENDENCY
public static final HttpStatus INTERNAL_SERVER_ERROR
public static final HttpStatus NOT_IMPLEMENTED
public static final HttpStatus BAD_GATEWAY
public static final HttpStatus SERVICE_UNAVAILABLE
public static final HttpStatus GATEWAY_TIMEOUT
public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
public static final HttpStatus INSUFFICIENT_STORAGE
Constructor Detail |
---|
protected HttpStatus(int code, java.lang.String message)
code
- status codemessage
- status messageMethod Detail |
---|
public static HttpStatus valueOf(int code)
code
- status code
public static HttpStatus valueOfStatusLine(java.lang.String statusLine)
statusLine
- status line
public int getCode()
public java.lang.String getMessage()
public java.lang.String getStatusLine()
HTTP/1.1 404 Not Found
.
public boolean isError()
true
if this status has code greater or equal to
400.public HttpStatus duplicate(java.lang.String message)
message
- new status message
public HttpStatus clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object httpStatus)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |