Java Doc for HttpResponse.java in  » Net » httpcomponents-core-4.0-beta1 » org » apache » http » 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 » httpcomponents core 4.0 beta1 » org.apache.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.http.HttpResponse

All known Subclasses:   org.apache.http.message.BasicHttpResponse,
HttpResponse
public interface HttpResponse extends HttpMessage(Code)
An HTTP response.
author:
   Oleg Kalnichevski
version:
   $Revision: 573864 $
since:
   4.0




Method Summary
 HttpEntitygetEntity()
     Obtains the message entity of this response, if any.
 LocalegetLocale()
     Obtains the locale of this response.
 StatusLinegetStatusLine()
     Obtains the status line of this response.
 voidsetEntity(HttpEntity entity)
     Associates a response entity with this response.
 voidsetLocale(Locale loc)
     Changes the locale of this response.
 voidsetReasonPhrase(String reason)
     Updates the status line of this response with a new reason phrase. The status line can only be updated if it is available.
 voidsetStatusCode(int code)
     Updates the status line of this response with a new status code. The status line can only be updated if it is available.
 voidsetStatusLine(StatusLine statusline)
     Sets the status line of this response.
 voidsetStatusLine(ProtocolVersion ver, int code)
     Sets the status line of this response.
 voidsetStatusLine(ProtocolVersion ver, int code, String reason)
     Sets the status line of this response with a reason phrase.



Method Detail
getEntity
HttpEntity getEntity()(Code)
Obtains the message entity of this response, if any. The entity is provided by calling HttpResponse.setEntity setEntity . the response entity, ornull if there is none



getLocale
Locale getLocale()(Code)
Obtains the locale of this response. The locale is used to determine the reason phrase for the HttpResponse.setStatusCode status code . It can be changed using HttpResponse.setLocale setLocale . the locale of this response, never null



getStatusLine
StatusLine getStatusLine()(Code)
Obtains the status line of this response. The status line can be set using on of the HttpResponse.setStatusLine setStatusLine methods, or it can be initialized in a constructor. the status line, or null if not yet set



setEntity
void setEntity(HttpEntity entity)(Code)
Associates a response entity with this response.
Parameters:
  entity - the entity to associate with this response, ornull to unset



setLocale
void setLocale(Locale loc)(Code)
Changes the locale of this response. If there is a status line, it's reason phrase will be updated according to the status code and new locale.
Parameters:
  loc - the new locale
See Also:   HttpResponse.getLocale
See Also:    getLocale
See Also:   HttpResponse.setStatusCode
See Also:    setStatusCode



setReasonPhrase
void setReasonPhrase(String reason) throws IllegalStateException(Code)
Updates the status line of this response with a new reason phrase. The status line can only be updated if it is available. It must have been set either explicitly or in a constructor.
Parameters:
  reason - the new reason phrase as a single-line string, ornull to unset the reason phrase
throws:
  IllegalStateException - if the status line has not be set
See Also:   HttpResponse.setStatusLine(StatusLine)
See Also:   HttpResponse.setStatusLine(ProtocolVersion,int)



setStatusCode
void setStatusCode(int code) throws IllegalStateException(Code)
Updates the status line of this response with a new status code. The status line can only be updated if it is available. It must have been set either explicitly or in a constructor.
The reason phrase will be updated according to the new status code, based on the current HttpResponse.getLocale locale . It can be set explicitly using HttpResponse.setReasonPhrase setReasonPhrase .
Parameters:
  code - the HTTP status code.
throws:
  IllegalStateException - if the status line has not be set
See Also:   HttpStatus
See Also:   HttpResponse.setStatusLine(StatusLine)
See Also:   HttpResponse.setStatusLine(ProtocolVersion,int)



setStatusLine
void setStatusLine(StatusLine statusline)(Code)
Sets the status line of this response.
Parameters:
  statusline - the status line of this response



setStatusLine
void setStatusLine(ProtocolVersion ver, int code)(Code)
Sets the status line of this response. The reason phrase will be determined based on the current HttpResponse.getLocale locale .
Parameters:
  ver - the HTTP version
Parameters:
  code - the status code



setStatusLine
void setStatusLine(ProtocolVersion ver, int code, String reason)(Code)
Sets the status line of this response with a reason phrase.
Parameters:
  ver - the HTTP version
Parameters:
  code - the status code
Parameters:
  reason - the reason phrase, or null to omit



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