Java Doc for HttpStatus.java in  » Net » Apache-common-HttpClient » org » apache » commons » httpclient » 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 » Net » Apache common HttpClient » org.apache.commons.httpclient 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.httpclient.HttpStatus

HttpStatus
public class HttpStatus (Code)
Constants enumerating the HTTP status codes. All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.
See Also:   StatusLine
author:
   Unascribed
author:
   Mike Bowler
author:
   Jeff Dever
author:
   TODO: Internationalization of reason phrases
version:
   $Id: HttpStatus.java 480424 2006-11-29 05:56:49Z bayard $


Field Summary
final public static  intSC_ACCEPTED
    
final public static  intSC_BAD_GATEWAY
    
final public static  intSC_BAD_REQUEST
    
final public static  intSC_CONFLICT
    
final public static  intSC_CONTINUE
    
final public static  intSC_CREATED
    
final public static  intSC_EXPECTATION_FAILED
    
final public static  intSC_FAILED_DEPENDENCY
    
final public static  intSC_FORBIDDEN
    
final public static  intSC_GATEWAY_TIMEOUT
    
final public static  intSC_GONE
    
final public static  intSC_HTTP_VERSION_NOT_SUPPORTED
    
final public static  intSC_INSUFFICIENT_SPACE_ON_RESOURCE
     Static constant for a 419 error.
final public static  intSC_INSUFFICIENT_STORAGE
    
final public static  intSC_INTERNAL_SERVER_ERROR
    
final public static  intSC_LENGTH_REQUIRED
    
final public static  intSC_LOCKED
    
final public static  intSC_METHOD_FAILURE
     Static constant for a 420 error.
final public static  intSC_METHOD_NOT_ALLOWED
    
final public static  intSC_MOVED_PERMANENTLY
    
final public static  intSC_MOVED_TEMPORARILY
    
final public static  intSC_MULTIPLE_CHOICES
    
final public static  intSC_MULTI_STATUS
    
final public static  intSC_NON_AUTHORITATIVE_INFORMATION
    
final public static  intSC_NOT_ACCEPTABLE
    
final public static  intSC_NOT_FOUND
    
final public static  intSC_NOT_IMPLEMENTED
    
final public static  intSC_NOT_MODIFIED
    
final public static  intSC_NO_CONTENT
    
final public static  intSC_OK
    
final public static  intSC_PARTIAL_CONTENT
    
final public static  intSC_PAYMENT_REQUIRED
    
final public static  intSC_PRECONDITION_FAILED
    
final public static  intSC_PROCESSING
    
final public static  intSC_PROXY_AUTHENTICATION_REQUIRED
    
final public static  intSC_REQUESTED_RANGE_NOT_SATISFIABLE
    
final public static  intSC_REQUEST_TIMEOUT
    
final public static  intSC_REQUEST_TOO_LONG
    
final public static  intSC_REQUEST_URI_TOO_LONG
    
final public static  intSC_RESET_CONTENT
    
final public static  intSC_SEE_OTHER
    
final public static  intSC_SERVICE_UNAVAILABLE
    
final public static  intSC_SWITCHING_PROTOCOLS
    
final public static  intSC_TEMPORARY_REDIRECT
    
final public static  intSC_UNAUTHORIZED
    
final public static  intSC_UNPROCESSABLE_ENTITY
    
final public static  intSC_UNSUPPORTED_MEDIA_TYPE
    
final public static  intSC_USE_PROXY
    


Method Summary
public static  StringgetStatusText(int statusCode)
     Get the reason phrase for a particular status code.

Field Detail
SC_ACCEPTED
final public static int SC_ACCEPTED(Code)
202 Accepted (HTTP/1.0 - RFC 1945)



SC_BAD_GATEWAY
final public static int SC_BAD_GATEWAY(Code)
502 Bad Gateway (HTTP/1.0 - RFC 1945)



SC_BAD_REQUEST
final public static int SC_BAD_REQUEST(Code)
400 Bad Request (HTTP/1.1 - RFC 2616)



SC_CONFLICT
final public static int SC_CONFLICT(Code)
409 Conflict (HTTP/1.1 - RFC 2616)



SC_CONTINUE
final public static int SC_CONTINUE(Code)
100 Continue (HTTP/1.1 - RFC 2616)



SC_CREATED
final public static int SC_CREATED(Code)
201 Created (HTTP/1.0 - RFC 1945)



SC_EXPECTATION_FAILED
final public static int SC_EXPECTATION_FAILED(Code)
417 Expectation Failed (HTTP/1.1 - RFC 2616)



SC_FAILED_DEPENDENCY
final public static int SC_FAILED_DEPENDENCY(Code)
424 Failed Dependency (WebDAV - RFC 2518)



SC_FORBIDDEN
final public static int SC_FORBIDDEN(Code)
403 Forbidden (HTTP/1.0 - RFC 1945)



SC_GATEWAY_TIMEOUT
final public static int SC_GATEWAY_TIMEOUT(Code)
504 Gateway Timeout (HTTP/1.1 - RFC 2616)



SC_GONE
final public static int SC_GONE(Code)
410 Gone (HTTP/1.1 - RFC 2616)



SC_HTTP_VERSION_NOT_SUPPORTED
final public static int SC_HTTP_VERSION_NOT_SUPPORTED(Code)
505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616)



SC_INSUFFICIENT_SPACE_ON_RESOURCE
final public static int SC_INSUFFICIENT_SPACE_ON_RESOURCE(Code)
Static constant for a 419 error. 419 Insufficient Space on Resource (WebDAV - draft-ietf-webdav-protocol-05?) or 419 Proxy Reauthentication Required (HTTP/1.1 drafts?)



SC_INSUFFICIENT_STORAGE
final public static int SC_INSUFFICIENT_STORAGE(Code)
507 Insufficient Storage (WebDAV - RFC 2518)



SC_INTERNAL_SERVER_ERROR
final public static int SC_INTERNAL_SERVER_ERROR(Code)
500 Server Error (HTTP/1.0 - RFC 1945)



SC_LENGTH_REQUIRED
final public static int SC_LENGTH_REQUIRED(Code)
411 Length Required (HTTP/1.1 - RFC 2616)



SC_LOCKED
final public static int SC_LOCKED(Code)
423 Locked (WebDAV - RFC 2518)



SC_METHOD_FAILURE
final public static int SC_METHOD_FAILURE(Code)
Static constant for a 420 error. 420 Method Failure (WebDAV - draft-ietf-webdav-protocol-05?)



SC_METHOD_NOT_ALLOWED
final public static int SC_METHOD_NOT_ALLOWED(Code)
405 Method Not Allowed (HTTP/1.1 - RFC 2616)



SC_MOVED_PERMANENTLY
final public static int SC_MOVED_PERMANENTLY(Code)
301 Moved Permanently (HTTP/1.0 - RFC 1945)



SC_MOVED_TEMPORARILY
final public static int SC_MOVED_TEMPORARILY(Code)
302 Moved Temporarily (Sometimes Found) (HTTP/1.0 - RFC 1945)



SC_MULTIPLE_CHOICES
final public static int SC_MULTIPLE_CHOICES(Code)
300 Mutliple Choices (HTTP/1.1 - RFC 2616)



SC_MULTI_STATUS
final public static int SC_MULTI_STATUS(Code)
207 Multi-Status (WebDAV - RFC 2518) or 207 Partial Update OK (HTTP/1.1 - draft-ietf-http-v11-spec-rev-01?)



SC_NON_AUTHORITATIVE_INFORMATION
final public static int SC_NON_AUTHORITATIVE_INFORMATION(Code)
203 Non Authoritative Information (HTTP/1.1 - RFC 2616)



SC_NOT_ACCEPTABLE
final public static int SC_NOT_ACCEPTABLE(Code)
406 Not Acceptable (HTTP/1.1 - RFC 2616)



SC_NOT_FOUND
final public static int SC_NOT_FOUND(Code)
404 Not Found (HTTP/1.0 - RFC 1945)



SC_NOT_IMPLEMENTED
final public static int SC_NOT_IMPLEMENTED(Code)
501 Not Implemented (HTTP/1.0 - RFC 1945)



SC_NOT_MODIFIED
final public static int SC_NOT_MODIFIED(Code)
304 Not Modified (HTTP/1.0 - RFC 1945)



SC_NO_CONTENT
final public static int SC_NO_CONTENT(Code)
204 No Content (HTTP/1.0 - RFC 1945)



SC_OK
final public static int SC_OK(Code)
200 OK (HTTP/1.0 - RFC 1945)



SC_PARTIAL_CONTENT
final public static int SC_PARTIAL_CONTENT(Code)
206 Partial Content (HTTP/1.1 - RFC 2616)



SC_PAYMENT_REQUIRED
final public static int SC_PAYMENT_REQUIRED(Code)
402 Payment Required (HTTP/1.1 - RFC 2616)



SC_PRECONDITION_FAILED
final public static int SC_PRECONDITION_FAILED(Code)
412 Precondition Failed (HTTP/1.1 - RFC 2616)



SC_PROCESSING
final public static int SC_PROCESSING(Code)
102 Processing (WebDAV - RFC 2518)



SC_PROXY_AUTHENTICATION_REQUIRED
final public static int SC_PROXY_AUTHENTICATION_REQUIRED(Code)
407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)



SC_REQUESTED_RANGE_NOT_SATISFIABLE
final public static int SC_REQUESTED_RANGE_NOT_SATISFIABLE(Code)
416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616)



SC_REQUEST_TIMEOUT
final public static int SC_REQUEST_TIMEOUT(Code)
408 Request Timeout (HTTP/1.1 - RFC 2616)



SC_REQUEST_TOO_LONG
final public static int SC_REQUEST_TOO_LONG(Code)
413 Request Entity Too Large (HTTP/1.1 - RFC 2616)



SC_REQUEST_URI_TOO_LONG
final public static int SC_REQUEST_URI_TOO_LONG(Code)
414 Request-URI Too Long (HTTP/1.1 - RFC 2616)



SC_RESET_CONTENT
final public static int SC_RESET_CONTENT(Code)
205 Reset Content (HTTP/1.1 - RFC 2616)



SC_SEE_OTHER
final public static int SC_SEE_OTHER(Code)
303 See Other (HTTP/1.1 - RFC 2616)



SC_SERVICE_UNAVAILABLE
final public static int SC_SERVICE_UNAVAILABLE(Code)
503 Service Unavailable (HTTP/1.0 - RFC 1945)



SC_SWITCHING_PROTOCOLS
final public static int SC_SWITCHING_PROTOCOLS(Code)
101 Switching Protocols (HTTP/1.1 - RFC 2616)



SC_TEMPORARY_REDIRECT
final public static int SC_TEMPORARY_REDIRECT(Code)
307 Temporary Redirect (HTTP/1.1 - RFC 2616)



SC_UNAUTHORIZED
final public static int SC_UNAUTHORIZED(Code)
401 Unauthorized (HTTP/1.0 - RFC 1945)



SC_UNPROCESSABLE_ENTITY
final public static int SC_UNPROCESSABLE_ENTITY(Code)
422 Unprocessable Entity (WebDAV - RFC 2518)



SC_UNSUPPORTED_MEDIA_TYPE
final public static int SC_UNSUPPORTED_MEDIA_TYPE(Code)
415 Unsupported Media Type (HTTP/1.1 - RFC 2616)



SC_USE_PROXY
final public static int SC_USE_PROXY(Code)
305 Use Proxy (HTTP/1.1 - RFC 2616)





Method Detail
getStatusText
public static String getStatusText(int statusCode)(Code)
Get the reason phrase for a particular status code. This method always returns the English text as specified in the relevent RFCs and is not internationalized.
Parameters:
  statusCode - the numeric status code the reason phrase associated with the given status codeor null if the status code is not recognized.TODO: getStatusText should be called getReasonPhrase to match RFC



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.