Java Doc for HttpMessage.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.HttpMessage

All known Subclasses:   org.apache.http.message.AbstractHttpMessage,
HttpMessage
public interface HttpMessage (Code)
A generic HTTP message. Holds what is common between requests and responses.
author:
   Oleg Kalnichevski
version:
   $Revision: 610823 $
since:
   4.0




Method Summary
 voidaddHeader(Header header)
     Adds a header to this message.
 voidaddHeader(String name, String value)
     Adds a header to this message.
 booleancontainsHeader(String name)
     Checks if a certain header is present in this message.
 Header[]getAllHeaders()
     Returns all the headers of this message.
 HeadergetFirstHeader(String name)
     Returns the first header with a specified name of this message.
 Header[]getHeaders(String name)
     Returns all the headers with a specified name of this message.
 HeadergetLastHeader(String name)
     Returns the last header with a specified name of this message.
 HttpParamsgetParams()
     Returns the parameters effective for this message as set by HttpMessage.setParams(HttpParams) .
 ProtocolVersiongetProtocolVersion()
     Returns the protocol version this message is compatible with.
 HeaderIteratorheaderIterator()
     Returns an iterator of all the headers.
 HeaderIteratorheaderIterator(String name)
     Returns an iterator of the headers with a given name.
 voidremoveHeader(Header header)
     Removes a header from this message.
 voidremoveHeaders(String name)
     Removes all headers with a certain name from this message.
 voidsetHeader(Header header)
     Overwrites the first header with the same name.
 voidsetHeader(String name, String value)
     Overwrites the first header with the same name.
 voidsetHeaders(Header[] headers)
     Overwrites all the headers in the message.
 voidsetParams(HttpParams params)
     Provides parameters to be used for the processing of this message.



Method Detail
addHeader
void addHeader(Header header)(Code)
Adds a header to this message. The header will be appended to the end of the list.
Parameters:
  header - the header to append.



addHeader
void addHeader(String name, String value)(Code)
Adds a header to this message. The header will be appended to the end of the list.
Parameters:
  name - the name of the header.
Parameters:
  value - the value of the header.



containsHeader
boolean containsHeader(String name)(Code)
Checks if a certain header is present in this message. Header values are ignored.
Parameters:
  name - the header name to check for. true if at least one header with this name is present.



getAllHeaders
Header[] getAllHeaders()(Code)
Returns all the headers of this message. Headers are orderd in the sequence they will be sent over a connection. all the headers of this message



getFirstHeader
Header getFirstHeader(String name)(Code)
Returns the first header with a specified name of this message. Header values are ignored. If there is more than one matching header in the message the first element of HttpMessage.getHeaders(String) is returned. If there is no matching header in the message null is returned.
Parameters:
  name - the name of the header to return. the first header whose name property equals nameor null if no such header could be found.



getHeaders
Header[] getHeaders(String name)(Code)
Returns all the headers with a specified name of this message. Header values are ignored. Headers are orderd in the sequence they will be sent over a connection.
Parameters:
  name - the name of the headers to return. the headers whose name property equals name.



getLastHeader
Header getLastHeader(String name)(Code)
Returns the last header with a specified name of this message. Header values are ignored. If there is more than one matching header in the message the last element of HttpMessage.getHeaders(String) is returned. If there is no matching header in the message null is returned.
Parameters:
  name - the name of the header to return. the last header whose name property equals name.or null if no such header could be found.



getParams
HttpParams getParams()(Code)
Returns the parameters effective for this message as set by HttpMessage.setParams(HttpParams) .



getProtocolVersion
ProtocolVersion getProtocolVersion()(Code)
Returns the protocol version this message is compatible with.



headerIterator
HeaderIterator headerIterator()(Code)
Returns an iterator of all the headers. Iterator that returns Header objects in the sequence they aresent over a connection.



headerIterator
HeaderIterator headerIterator(String name)(Code)
Returns an iterator of the headers with a given name.
Parameters:
  name - the name of the headers over which to iterate, ornull for all headers Iterator that returns Header objects with the argument namein the sequence they are sent over a connection.



removeHeader
void removeHeader(Header header)(Code)
Removes a header from this message.
Parameters:
  header - the header to remove.



removeHeaders
void removeHeaders(String name)(Code)
Removes all headers with a certain name from this message.
Parameters:
  name - The name of the headers to remove.



setHeader
void setHeader(Header header)(Code)
Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.
Parameters:
  header - the header to set.



setHeader
void setHeader(String name, String value)(Code)
Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.
Parameters:
  name - the name of the header.
Parameters:
  value - the value of the header.



setHeaders
void setHeaders(Header[] headers)(Code)
Overwrites all the headers in the message.
Parameters:
  headers - the array of headers to set.



setParams
void setParams(HttpParams params)(Code)
Provides parameters to be used for the processing of this message.
Parameters:
  params - the parameters



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