org.eclipse.webdav.internal.kernel
Class Status
java.lang.Object
org.eclipse.webdav.internal.kernel.Status
- All Implemented Interfaces:
- Cloneable
public class Status
- extends Object
- implements Cloneable
code
protected int code
message
protected String message
extendedStatus
protected Document extendedStatus
CONTINUE
public static final Status CONTINUE
SWITCHING_PROTOCOLS
public static final Status SWITCHING_PROTOCOLS
PROCESSING
public static final Status PROCESSING
OK
public static final Status OK
CREATED
public static final Status CREATED
ACCEPTED
public static final Status ACCEPTED
NON_AUTHORITATIVE_INFORMATION
public static final Status NON_AUTHORITATIVE_INFORMATION
NO_CONTENT
public static final Status NO_CONTENT
RESET_CONTENT
public static final Status RESET_CONTENT
PARTIAL_CONTENT
public static final Status PARTIAL_CONTENT
MULTI_STATUS
public static final Status MULTI_STATUS
MULTIPLE_CHOICES
public static final Status MULTIPLE_CHOICES
MOVED_PERMANENTLY
public static final Status MOVED_PERMANENTLY
MOVED_TEMPORARILY
public static final Status MOVED_TEMPORARILY
SEE_OTHER
public static final Status SEE_OTHER
NOT_MODIFIED
public static final Status NOT_MODIFIED
USE_PROXY
public static final Status USE_PROXY
BAD_REQUEST
public static final Status BAD_REQUEST
UNAUTHORIZED
public static final Status UNAUTHORIZED
PAYMENT_REQUIRED
public static final Status PAYMENT_REQUIRED
FORBIDDEN
public static final Status FORBIDDEN
NOT_FOUND
public static final Status NOT_FOUND
METHOD_NOT_ALLOWED
public static final Status METHOD_NOT_ALLOWED
NOT_ACCEPTABLE
public static final Status NOT_ACCEPTABLE
PROXY_AUTHENTICATION_REQUIRED
public static final Status PROXY_AUTHENTICATION_REQUIRED
REQUEST_TIMEOUT
public static final Status REQUEST_TIMEOUT
CONFLICT
public static final Status CONFLICT
GONE
public static final Status GONE
LENGTH_REQUIRED
public static final Status LENGTH_REQUIRED
PRECONDITION_FAILED
public static final Status PRECONDITION_FAILED
REQUEST_TOO_LONG
public static final Status REQUEST_TOO_LONG
REQUEST_URI_TOO_LONG
public static final Status REQUEST_URI_TOO_LONG
UNSUPPORTED_MEDIA_TYPE
public static final Status UNSUPPORTED_MEDIA_TYPE
UNPROCESSABLE_ENTITY
public static final Status UNPROCESSABLE_ENTITY
LOCKED
public static final Status LOCKED
FAILED_DEPENDENCY
public static final Status FAILED_DEPENDENCY
INSUFFICIENT_SPACE_ON_RESOURCE
public static final Status INSUFFICIENT_SPACE_ON_RESOURCE
INTERNAL_SERVER_ERROR
public static final Status INTERNAL_SERVER_ERROR
NOT_IMPLEMENTED
public static final Status NOT_IMPLEMENTED
BAD_GATEWAY
public static final Status BAD_GATEWAY
SERVICE_UNAVAILABLE
public static final Status SERVICE_UNAVAILABLE
GATEWAY_TIMEOUT
public static final Status GATEWAY_TIMEOUT
HTTP_VERSION_NOT_SUPPORTED
public static final Status HTTP_VERSION_NOT_SUPPORTED
LOOP_DETECTED
public static final Status LOOP_DETECTED
CROSS_SERVER_BINDING_FORBIDDEN
public static final Status CROSS_SERVER_BINDING_FORBIDDEN
Status
public Status(int code,
String message)
Status
public Status(Status basicStatus,
Document extendedStatus)
equals
public boolean equals(Object obj)
- Answers whether the receiver and the argument are considered
equal. Note that in this implementation of equal, the only
field that is considered is the status code. In particular,
the status message and the extended status information are
not considered revlevant to equality.
- Overrides:
equals
in class Object
- Parameters:
obj
- other object with which to test equality.
- Returns:
- boolean indicating equality.
- See Also:
sameAs(Object)
getCode
public int getCode()
getExtendedStatus
public Document getExtendedStatus()
- Get the extended status information for the receiver
as an XML document. This method will return
null
if there is no extended information.
- Returns:
- the extended infomration as a
Document
,
or null
if there is no such information.
getMessage
public String getMessage()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
hashCode()
sameAs
public boolean sameAs(Object obj)
- Answers whether the receiver and the argument are considered
identical. To be identical, the receiver and the argument
must have the same status code, message, and extended status
information.
- Parameters:
obj
- other object with which to test.
- Returns:
- boolean indicating whether they are the same or not.
- See Also:
equals(Object)
toHTTPString
public String toHTTPString()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.