Java Doc for Status.java in  » Web-Services » restlet-1.0.8 » org » restlet » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services » restlet 1.0.8 » org.restlet.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.restlet.data.Metadata
      org.restlet.data.Status

Status
final public class Status extends Metadata (Code)
Status to return after handling a call.
author:
   Jerome Louvel (contact@noelios.com)


Field Summary
final public static  StatusCLIENT_ERROR_BAD_REQUEST
     The request could not be understood by the server due to malformed syntax.
final public static  StatusCLIENT_ERROR_CONFLICT
     The request could not be completed due to a conflict with the current state of the resource (as experienced in a version control system).
final public static  StatusCLIENT_ERROR_EXPECTATION_FAILED
     The user agent expects some behaviour of the server (given in an Expect request-header field), but this expectation could not be met by this server.
final public static  StatusCLIENT_ERROR_FAILED_DEPENDENCY
     This status code means that the method could not be performed on the resource because the requested action depended on another action and that action failed.
final public static  StatusCLIENT_ERROR_FORBIDDEN
     The server understood the request, but is refusing to fulfill it as it could be explained in the entity.
final public static  StatusCLIENT_ERROR_GONE
     The requested resource is no longer available at the server and no forwarding address is known.
final public static  StatusCLIENT_ERROR_LENGTH_REQUIRED
     The server refuses to accept the request without a defined Content-Length.
final public static  StatusCLIENT_ERROR_LOCKED
     The source or destination resource of a method is locked (or temporarily involved in another process).
final public static  StatusCLIENT_ERROR_METHOD_NOT_ALLOWED
     The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
final public static  StatusCLIENT_ERROR_NOT_ACCEPTABLE
     The resource identified by the request is only capable of generating response entities whose content characteristics do not match the user's requirements (in Accept* headers).
final public static  StatusCLIENT_ERROR_NOT_FOUND
     The server has not found anything matching the Request-URI or the server does not wish to reveal exactly why the request has been refused, or no other response is applicable.
final public static  StatusCLIENT_ERROR_PAYMENT_REQUIRED
     This code is reserved for future use.
final public static  StatusCLIENT_ERROR_PRECONDITION_FAILED
     Sent by the server when the user agent asks the server to carry out a request under certain conditions that are not met.
final public static  StatusCLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED
     This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.
final public static  StatusCLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE
     The request includes a Range request-header field and the selected resource is too small for any of the byte-ranges to apply.
final public static  StatusCLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
     The server is refusing to process a request because the request entity is larger than the server is willing or able to process.
final public static  StatusCLIENT_ERROR_REQUEST_TIMEOUT
     Sent by the server when an HTTP client opens a connection, but has never sent a request (or never sent the blank line that signals the end of the request).
final public static  StatusCLIENT_ERROR_REQUEST_URI_TOO_LONG
     The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret.
final public static  StatusCLIENT_ERROR_UNAUTHORIZED
     The request requires user authentication.
final public static  StatusCLIENT_ERROR_UNPROCESSABLE_ENTITY
     This status code means the server understands the content type of the request entity (syntactically correct) but was unable to process the contained instructions.
final public static  StatusCLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE
     The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.
final public static  StatusCONNECTOR_ERROR_COMMUNICATION
     A client connector faces an error during the communication with the remote server (interruption, timeout, etc).
final public static  StatusCONNECTOR_ERROR_CONNECTION
     A client connector can not connect to the remote server.
final public static  StatusCONNECTOR_ERROR_INTERNAL
     Generic status code sent by a client connector when an error occurs during the process of a request to its server or the process of a response to its client.
final public static  StatusINFO_CONTINUE
     This interim response (the client has to wait for the final response) is used to inform the client that the initial part of the request has been received and has not yet been rejected or completed by the server.
final public static  StatusINFO_PROCESSING
     This interim response is used to inform the client that the server has accepted the complete request, but has not yet completed it since the server has a reasonable expectation that the request will take significant time to complete.
final public static  StatusINFO_SWITCHING_PROTOCOL
     The server understands and is willing to comply with the client's request, via the Upgrade message header field, for a change in the application protocol being used on this connection.
final public static  StatusREDIRECTION_FOUND
     The requested resource resides temporarily under a different URI which should not be used for future requests by the client (use status codes 303 or 307 instead since this status has been manifestly misused).
final public static  StatusREDIRECTION_MULTIPLE_CHOICES
     The server lets the user agent choosing one of the multiple representations of the requested resource, each representation having its own specific location provided in the response entity.
final public static  StatusREDIRECTION_NOT_MODIFIED
     Status code sent by the server in response to a conditional GET request in case the document has not been modified.
final public static  StatusREDIRECTION_PERMANENT
     The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.
final public static  StatusREDIRECTION_SEE_OTHER
     The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource.
final public static  StatusREDIRECTION_TEMPORARY
     The requested resource resides temporarily under a different URI which should not be used for future requests by the client.
final public static  StatusREDIRECTION_USE_PROXY
     The requested resource MUST be accessed through the proxy given by the Location field.
final public static  StatusSERVER_ERROR_BAD_GATEWAY
     The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
final public static  StatusSERVER_ERROR_GATEWAY_TIMEOUT
     The server, while acting as a gateway or proxy, could not connect to the upstream server.
final public static  StatusSERVER_ERROR_INSUFFICIENT_STORAGE
     This status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
final public static  StatusSERVER_ERROR_INTERNAL
     The server encountered an unexpected condition which prevented it from fulfilling the request.
final public static  StatusSERVER_ERROR_NOT_IMPLEMENTED
     The server does not support the functionality required to fulfill the request.
final public static  StatusSERVER_ERROR_SERVICE_UNAVAILABLE
     The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
final public static  StatusSERVER_ERROR_VERSION_NOT_SUPPORTED
     The server does not support, or refuses to support, the HTTP protocol version that was used in the request message.
final public static  StatusSUCCESS_ACCEPTED
     The request has been accepted for processing, but the processing has not been completed.
final public static  StatusSUCCESS_CREATED
     The request has been fulfilled and resulted in a new resource being created.
final public static  StatusSUCCESS_MULTI_STATUS
     This response is used to inform the client that the HTTP response entity contains a set of status codes generated during the method invocation.
final public static  StatusSUCCESS_NON_AUTHORITATIVE
     The request has succeeded but the returned metainformation in the entity-header do not come from the origin server, but is gathered from a local or a third-party copy.
final public static  StatusSUCCESS_NO_CONTENT
     The server has fulfilled the request but does not need to return an entity-body (for example after a DELETE), and might want to return updated metainformation.
final public static  StatusSUCCESS_OK
     The request has succeeded.
final public static  StatusSUCCESS_PARTIAL_CONTENT
     The server has fulfilled the partial GET request for the resource assuming the request has included a Range header field indicating the desired range.
final public static  StatusSUCCESS_RESET_CONTENT
     The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.

Constructor Summary
public  Status(int code)
     Constructor.
public  Status(int code, String name, String description, String uri)
     Constructor.
public  Status(Status status, String description)
     Constructor.

Method Summary
public  booleanequals(Object object)
     Indicates if the status is equal to a given one.
Parameters:
  object - The object to compare to.
public  intgetCode()
     Returns the corresponding code (HTTP or WebDAV or custom code).
public  StringgetDescription()
     Returns the description.
public  StringgetName()
     Returns the name of this status.
public  StringgetUri()
     Returns the URI of the specification describing the status.
public  inthashCode()
    
public static  booleanisClientError(int code)
     Indicates if the status is a client error status.
Parameters:
  code - The code of the status.
public  booleanisClientError()
     Indicates if the status is a client error status.
public static  booleanisConnectorError(int code)
     Indicates if the status is a connector error status.
Parameters:
  code - The code of the status.
public  booleanisConnectorError()
     Indicates if the status is a connector error status.
public static  booleanisError(int code)
     Indicates if the status is an error (client or server) status.
Parameters:
  code - The code of the status.
public  booleanisError()
     Indicates if the status is an error (client or server) status.
public static  booleanisInfo(int code)
     Indicates if the status is an information status.
Parameters:
  code - The code of the status.
public  booleanisInfo()
     Indicates if the status is an information status.
public static  booleanisRedirection(int code)
     Indicates if the status is a redirection status.
Parameters:
  code - The code of the status.
public  booleanisRedirection()
     Indicates if the status is a redirection status.
public static  booleanisServerError(int code)
     Indicates if the status is a server error status.
Parameters:
  code - The code of the status.
public  booleanisServerError()
     Indicates if the status is a server error status.
public static  booleanisSuccess(int code)
     Indicates if the status is a success status.
Parameters:
  code - The code of the status.
public  booleanisSuccess()
     Indicates if the status is a success status.
public  StringtoString()
     Returns the name of the status followed by its HTTP code.
public static  StatusvalueOf(int code)
     Returns the status associated to a code.

Field Detail
CLIENT_ERROR_BAD_REQUEST
final public static Status CLIENT_ERROR_BAD_REQUEST(Code)
The request could not be understood by the server due to malformed syntax.
See Also:    HTTP * RFC - 10.4.1 400 Bad Request



CLIENT_ERROR_CONFLICT
final public static Status CLIENT_ERROR_CONFLICT(Code)
The request could not be completed due to a conflict with the current state of the resource (as experienced in a version control system).
See Also:    HTTP * RFC - 10.4.10 409 Conflict



CLIENT_ERROR_EXPECTATION_FAILED
final public static Status CLIENT_ERROR_EXPECTATION_FAILED(Code)
The user agent expects some behaviour of the server (given in an Expect request-header field), but this expectation could not be met by this server.
See Also:    HTTP * RFC - 10.4.18 417 Expectation Failed



CLIENT_ERROR_FAILED_DEPENDENCY
final public static Status CLIENT_ERROR_FAILED_DEPENDENCY(Code)
This status code means that the method could not be performed on the resource because the requested action depended on another action and that action failed.
See Also:    WEBDAV * RFC - 10.5 424 Failed Dependency



CLIENT_ERROR_FORBIDDEN
final public static Status CLIENT_ERROR_FORBIDDEN(Code)
The server understood the request, but is refusing to fulfill it as it could be explained in the entity.
See Also:    HTTP * RFC - 10.4.4 403 Forbidden



CLIENT_ERROR_GONE
final public static Status CLIENT_ERROR_GONE(Code)
The requested resource is no longer available at the server and no forwarding address is known.
See Also:    HTTP * RFC - 10.4.11 410 Gone



CLIENT_ERROR_LENGTH_REQUIRED
final public static Status CLIENT_ERROR_LENGTH_REQUIRED(Code)
The server refuses to accept the request without a defined Content-Length.
See Also:    HTTP * RFC - 10.4.12 411 Length Required



CLIENT_ERROR_LOCKED
final public static Status CLIENT_ERROR_LOCKED(Code)
The source or destination resource of a method is locked (or temporarily involved in another process).
See Also:    WEBDAV * RFC - 10.4 423 Locked



CLIENT_ERROR_METHOD_NOT_ALLOWED
final public static Status CLIENT_ERROR_METHOD_NOT_ALLOWED(Code)
The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
See Also:    HTTP * RFC - 10.4.6 405 Method Not Allowed



CLIENT_ERROR_NOT_ACCEPTABLE
final public static Status CLIENT_ERROR_NOT_ACCEPTABLE(Code)
The resource identified by the request is only capable of generating response entities whose content characteristics do not match the user's requirements (in Accept* headers).
See Also:    HTTP * RFC - 10.4.7 406 Not Acceptable



CLIENT_ERROR_NOT_FOUND
final public static Status CLIENT_ERROR_NOT_FOUND(Code)
The server has not found anything matching the Request-URI or the server does not wish to reveal exactly why the request has been refused, or no other response is applicable.
See Also:    HTTP * RFC - 10.4.5 404 Not Found



CLIENT_ERROR_PAYMENT_REQUIRED
final public static Status CLIENT_ERROR_PAYMENT_REQUIRED(Code)
This code is reserved for future use.
See Also:    HTTP * RFC - 10.4.3 402 Payment Required



CLIENT_ERROR_PRECONDITION_FAILED
final public static Status CLIENT_ERROR_PRECONDITION_FAILED(Code)
Sent by the server when the user agent asks the server to carry out a request under certain conditions that are not met.
See Also:    HTTP * RFC - 10.4.13 412 Precondition Failed



CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED
final public static Status CLIENT_ERROR_PROXY_AUTHENTIFICATION_REQUIRED(Code)
This code is similar to 401 (Unauthorized), but indicates that the client must first authenticate itself with the proxy.
See Also:    HTTP * RFC - 10.4.8 407 Proxy Authentication Required



CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE
final public static Status CLIENT_ERROR_REQUESTED_RANGE_NOT_SATISFIABLE(Code)
The request includes a Range request-header field and the selected resource is too small for any of the byte-ranges to apply.
See Also:    HTTP * RFC - 10.4.17 416 Requested Range Not Satisfiable



CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE
final public static Status CLIENT_ERROR_REQUEST_ENTITY_TOO_LARGE(Code)
The server is refusing to process a request because the request entity is larger than the server is willing or able to process.
See Also:    HTTP * RFC - 10.4.14 413 Request Entity Too Large



CLIENT_ERROR_REQUEST_TIMEOUT
final public static Status CLIENT_ERROR_REQUEST_TIMEOUT(Code)
Sent by the server when an HTTP client opens a connection, but has never sent a request (or never sent the blank line that signals the end of the request).
See Also:    HTTP * RFC - 10.4.9 408 Request Timeout



CLIENT_ERROR_REQUEST_URI_TOO_LONG
final public static Status CLIENT_ERROR_REQUEST_URI_TOO_LONG(Code)
The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret.
See Also:    HTTP * RFC - 10.4.15 414 Request-URI Too Long



CLIENT_ERROR_UNAUTHORIZED
final public static Status CLIENT_ERROR_UNAUTHORIZED(Code)
The request requires user authentication.
See Also:    HTTP * RFC - 10.4.2 401 Unauthorized



CLIENT_ERROR_UNPROCESSABLE_ENTITY
final public static Status CLIENT_ERROR_UNPROCESSABLE_ENTITY(Code)
This status code means the server understands the content type of the request entity (syntactically correct) but was unable to process the contained instructions.
See Also:    WEBDAV * RFC - 10.3 422 Unprocessable Entity



CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE
final public static Status CLIENT_ERROR_UNSUPPORTED_MEDIA_TYPE(Code)
The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.
See Also:    HTTP * RFC - 10.4.16 415 Unsupported Media Type



CONNECTOR_ERROR_COMMUNICATION
final public static Status CONNECTOR_ERROR_COMMUNICATION(Code)
A client connector faces an error during the communication with the remote server (interruption, timeout, etc).



CONNECTOR_ERROR_CONNECTION
final public static Status CONNECTOR_ERROR_CONNECTION(Code)
A client connector can not connect to the remote server.



CONNECTOR_ERROR_INTERNAL
final public static Status CONNECTOR_ERROR_INTERNAL(Code)
Generic status code sent by a client connector when an error occurs during the process of a request to its server or the process of a response to its client.



INFO_CONTINUE
final public static Status INFO_CONTINUE(Code)
This interim response (the client has to wait for the final response) is used to inform the client that the initial part of the request has been received and has not yet been rejected or completed by the server.
See Also:    HTTP * RFC - 10.1.1 100 Continue



INFO_PROCESSING
final public static Status INFO_PROCESSING(Code)
This interim response is used to inform the client that the server has accepted the complete request, but has not yet completed it since the server has a reasonable expectation that the request will take significant time to complete.
See Also:    WEBDAV * RFC - 10.1 102 Processing



INFO_SWITCHING_PROTOCOL
final public static Status INFO_SWITCHING_PROTOCOL(Code)
The server understands and is willing to comply with the client's request, via the Upgrade message header field, for a change in the application protocol being used on this connection.
See Also:    HTTP * RFC - 10.1.1 101 Switching Protocols



REDIRECTION_FOUND
final public static Status REDIRECTION_FOUND(Code)
The requested resource resides temporarily under a different URI which should not be used for future requests by the client (use status codes 303 or 307 instead since this status has been manifestly misused).
See Also:    HTTP * RFC - 10.3.3 302 Found



REDIRECTION_MULTIPLE_CHOICES
final public static Status REDIRECTION_MULTIPLE_CHOICES(Code)
The server lets the user agent choosing one of the multiple representations of the requested resource, each representation having its own specific location provided in the response entity.
See Also:    HTTP * RFC - 10.3.1 300 Multiple Choices



REDIRECTION_NOT_MODIFIED
final public static Status REDIRECTION_NOT_MODIFIED(Code)
Status code sent by the server in response to a conditional GET request in case the document has not been modified.
See Also:    HTTP * RFC - 10.3.5 304 Not Modified



REDIRECTION_PERMANENT
final public static Status REDIRECTION_PERMANENT(Code)
The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs.
See Also:    HTTP * RFC - 10.3.2 301 Moved Permanently



REDIRECTION_SEE_OTHER
final public static Status REDIRECTION_SEE_OTHER(Code)
The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource.
See Also:    HTTP * RFC - 10.3.4 303 See Other



REDIRECTION_TEMPORARY
final public static Status REDIRECTION_TEMPORARY(Code)
The requested resource resides temporarily under a different URI which should not be used for future requests by the client.
See Also:    HTTP * RFC - 10.3.8 307 Temporary Redirect



REDIRECTION_USE_PROXY
final public static Status REDIRECTION_USE_PROXY(Code)
The requested resource MUST be accessed through the proxy given by the Location field.
See Also:    HTTP * RFC - 10.3.6 305 Use Proxy



SERVER_ERROR_BAD_GATEWAY
final public static Status SERVER_ERROR_BAD_GATEWAY(Code)
The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
See Also:    HTTP * RFC - 10.5.3 502 Bad Gateway



SERVER_ERROR_GATEWAY_TIMEOUT
final public static Status SERVER_ERROR_GATEWAY_TIMEOUT(Code)
The server, while acting as a gateway or proxy, could not connect to the upstream server.
See Also:    HTTP * RFC - 10.5.5 504 Gateway Timeout



SERVER_ERROR_INSUFFICIENT_STORAGE
final public static Status SERVER_ERROR_INSUFFICIENT_STORAGE(Code)
This status code means the method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
See Also:    WEBDAV * RFC - 10.6 507 Insufficient Storage



SERVER_ERROR_INTERNAL
final public static Status SERVER_ERROR_INTERNAL(Code)
The server encountered an unexpected condition which prevented it from fulfilling the request.
See Also:    HTTP * RFC - 10.5.1 500 Internal Server Error



SERVER_ERROR_NOT_IMPLEMENTED
final public static Status SERVER_ERROR_NOT_IMPLEMENTED(Code)
The server does not support the functionality required to fulfill the request.
See Also:    HTTP * RFC - 10.5.2 501 Not Implemented



SERVER_ERROR_SERVICE_UNAVAILABLE
final public static Status SERVER_ERROR_SERVICE_UNAVAILABLE(Code)
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
See Also:    HTTP * RFC - 10.5.4 503 Service Unavailable



SERVER_ERROR_VERSION_NOT_SUPPORTED
final public static Status SERVER_ERROR_VERSION_NOT_SUPPORTED(Code)
The server does not support, or refuses to support, the HTTP protocol version that was used in the request message.
See Also:    HTTP * RFC - 10.5.6 505 HTTP Version Not Supported



SUCCESS_ACCEPTED
final public static Status SUCCESS_ACCEPTED(Code)
The request has been accepted for processing, but the processing has not been completed.
See Also:    HTTP * RFC - 10.2.3 202 Accepted



SUCCESS_CREATED
final public static Status SUCCESS_CREATED(Code)
The request has been fulfilled and resulted in a new resource being created.
See Also:    HTTP * RFC - 10.2.2 201 Created



SUCCESS_MULTI_STATUS
final public static Status SUCCESS_MULTI_STATUS(Code)
This response is used to inform the client that the HTTP response entity contains a set of status codes generated during the method invocation.
See Also:    WEBDAV * RFC - 10.2 207 Multi-Status



SUCCESS_NON_AUTHORITATIVE
final public static Status SUCCESS_NON_AUTHORITATIVE(Code)
The request has succeeded but the returned metainformation in the entity-header do not come from the origin server, but is gathered from a local or a third-party copy.
See Also:    HTTP * RFC - 10.2.4 203 Non-Authoritative Information



SUCCESS_NO_CONTENT
final public static Status SUCCESS_NO_CONTENT(Code)
The server has fulfilled the request but does not need to return an entity-body (for example after a DELETE), and might want to return updated metainformation.
See Also:    HTTP * RFC - 10.2.5 204 No Content



SUCCESS_OK
final public static Status SUCCESS_OK(Code)
The request has succeeded.
See Also:    HTTP * RFC - 10.2.1 200 OK



SUCCESS_PARTIAL_CONTENT
final public static Status SUCCESS_PARTIAL_CONTENT(Code)
The server has fulfilled the partial GET request for the resource assuming the request has included a Range header field indicating the desired range.
See Also:    HTTP * RFC - 10.2.7 206 Partial Content



SUCCESS_RESET_CONTENT
final public static Status SUCCESS_RESET_CONTENT(Code)
The server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.
See Also:    HTTP * RFC - 10.2.6 205 Reset Content




Constructor Detail
Status
public Status(int code)(Code)
Constructor.
Parameters:
  code - The specification code.



Status
public Status(int code, String name, String description, String uri)(Code)
Constructor.
Parameters:
  code - The specification code.
Parameters:
  name - The name.
Parameters:
  description - The description.
Parameters:
  uri - The URI of the specification describing the method.



Status
public Status(Status status, String description)(Code)
Constructor.
Parameters:
  status - The status to copy.
Parameters:
  description - The description to associate.




Method Detail
equals
public boolean equals(Object object)(Code)
Indicates if the status is equal to a given one.
Parameters:
  object - The object to compare to. True if the status is equal to a given one.



getCode
public int getCode()(Code)
Returns the corresponding code (HTTP or WebDAV or custom code). The corresponding code.



getDescription
public String getDescription()(Code)
Returns the description. The description.



getName
public String getName()(Code)
Returns the name of this status. The name of this status.



getUri
public String getUri()(Code)
Returns the URI of the specification describing the status. The URI of the specification describing the status.



hashCode
public int hashCode()(Code)



isClientError
public static boolean isClientError(int code)(Code)
Indicates if the status is a client error status.
Parameters:
  code - The code of the status. True if the status is a client error status.



isClientError
public boolean isClientError()(Code)
Indicates if the status is a client error status. True if the status is a client error status.



isConnectorError
public static boolean isConnectorError(int code)(Code)
Indicates if the status is a connector error status.
Parameters:
  code - The code of the status. True if the status is a server error status.



isConnectorError
public boolean isConnectorError()(Code)
Indicates if the status is a connector error status. True if the status is a connector error status.



isError
public static boolean isError(int code)(Code)
Indicates if the status is an error (client or server) status.
Parameters:
  code - The code of the status. True if the status is an error (client or server) status.



isError
public boolean isError()(Code)
Indicates if the status is an error (client or server) status. True if the status is an error (client or server) status.



isInfo
public static boolean isInfo(int code)(Code)
Indicates if the status is an information status.
Parameters:
  code - The code of the status. True if the status is an information status.



isInfo
public boolean isInfo()(Code)
Indicates if the status is an information status. True if the status is an information status.



isRedirection
public static boolean isRedirection(int code)(Code)
Indicates if the status is a redirection status.
Parameters:
  code - The code of the status. True if the status is a redirection status.



isRedirection
public boolean isRedirection()(Code)
Indicates if the status is a redirection status. True if the status is a redirection status.



isServerError
public static boolean isServerError(int code)(Code)
Indicates if the status is a server error status.
Parameters:
  code - The code of the status. True if the status is a server error status.



isServerError
public boolean isServerError()(Code)
Indicates if the status is a server error status. True if the status is a server error status.



isSuccess
public static boolean isSuccess(int code)(Code)
Indicates if the status is a success status.
Parameters:
  code - The code of the status. True if the status is a success status.



isSuccess
public boolean isSuccess()(Code)
Indicates if the status is a success status. True if the status is a success status.



toString
public String toString()(Code)
Returns the name of the status followed by its HTTP code. The name of the status followed by its HTTP code.



valueOf
public static Status valueOf(int code)(Code)
Returns the status associated to a code. If an existing constant exists then it is returned, otherwise a new instance is created.
Parameters:
  code - The code. The associated status.



Methods inherited from org.restlet.data.Metadata
public boolean equals(Object object)(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.