org.eclipse.webdav.internal.kernel
Class Status

java.lang.Object
  extended by org.eclipse.webdav.internal.kernel.Status
All Implemented Interfaces:
Cloneable

public class Status
extends Object
implements Cloneable


Field Summary
static Status ACCEPTED
           
static Status BAD_GATEWAY
           
static Status BAD_REQUEST
           
protected  int code
           
static Status CONFLICT
           
static Status CONTINUE
           
static Status CREATED
           
static Status CROSS_SERVER_BINDING_FORBIDDEN
           
protected  Document extendedStatus
           
static Status FAILED_DEPENDENCY
           
static Status FORBIDDEN
           
static Status GATEWAY_TIMEOUT
           
static Status GONE
           
static Status HTTP_VERSION_NOT_SUPPORTED
           
static Status INSUFFICIENT_SPACE_ON_RESOURCE
           
static Status INTERNAL_SERVER_ERROR
           
static Status LENGTH_REQUIRED
           
static Status LOCKED
           
static Status LOOP_DETECTED
           
protected  String message
           
static Status METHOD_NOT_ALLOWED
           
static Status MOVED_PERMANENTLY
           
static Status MOVED_TEMPORARILY
           
static Status MULTI_STATUS
           
static Status MULTIPLE_CHOICES
           
static Status NO_CONTENT
           
static Status NON_AUTHORITATIVE_INFORMATION
           
static Status NOT_ACCEPTABLE
           
static Status NOT_FOUND
           
static Status NOT_IMPLEMENTED
           
static Status NOT_MODIFIED
           
static Status OK
           
static Status PARTIAL_CONTENT
           
static Status PAYMENT_REQUIRED
           
static Status PRECONDITION_FAILED
           
static Status PROCESSING
           
static Status PROXY_AUTHENTICATION_REQUIRED
           
static Status REQUEST_TIMEOUT
           
static Status REQUEST_TOO_LONG
           
static Status REQUEST_URI_TOO_LONG
           
static Status RESET_CONTENT
           
static Status SEE_OTHER
           
static Status SERVICE_UNAVAILABLE
           
static Status SWITCHING_PROTOCOLS
           
static Status UNAUTHORIZED
           
static Status UNPROCESSABLE_ENTITY
           
static Status UNSUPPORTED_MEDIA_TYPE
           
static Status USE_PROXY
           
 
Constructor Summary
Status(int code, String message)
           
Status(Status basicStatus, Document extendedStatus)
           
 
Method Summary
 boolean equals(Object obj)
          Answers whether the receiver and the argument are considered equal.
 int getCode()
           
 Document getExtendedStatus()
          Get the extended status information for the receiver as an XML document.
 String getMessage()
           
 int hashCode()
           
 boolean sameAs(Object obj)
          Answers whether the receiver and the argument are considered identical.
 String toHTTPString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Status

public Status(int code,
              String message)

Status

public Status(Status basicStatus,
              Document extendedStatus)
Method Detail

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.