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


org.apache.http.message.LineFormatter

All known Subclasses:   org.apache.http.message.BasicLineFormatter,
LineFormatter
public interface LineFormatter (Code)
Interface for formatting elements of the HEAD section of an HTTP message. This is the complement to LineParser . There are individual methods for formatting a request line, a status line, or a header line. The formatting does not include the trailing line break sequence CR-LF. Instances of this interface are expected to be stateless and thread-safe.

The formatted lines are returned in memory, the formatter does not depend on any specific IO mechanism. In order to avoid unnecessary creation of temporary objects, a buffer can be passed as argument to all formatting methods. The implementation may or may not actually use that buffer for formatting. If it is used, the buffer will first be cleared by the formatXXX methods. The argument buffer can always be re-used after the call. The buffer returned as the result, if it is different from the argument buffer, MUST NOT be modified.


author:
   Roland Weber
author:
  
version:
   $Revision: 573864 $ $Date: 2007-09-08 17:53:25 +0200 (Sat, 08 Sep 2007) $
since:
   4.0




Method Summary
 CharArrayBufferappendProtocolVersion(CharArrayBuffer buffer, ProtocolVersion version)
     Formats a protocol version.
 CharArrayBufferformatHeader(CharArrayBuffer buffer, Header header)
     Formats a header.
 CharArrayBufferformatRequestLine(CharArrayBuffer buffer, RequestLine reqline)
     Formats a request line.
 CharArrayBufferformatStatusLine(CharArrayBuffer buffer, StatusLine statline)
     Formats a status line.



Method Detail
appendProtocolVersion
CharArrayBuffer appendProtocolVersion(CharArrayBuffer buffer, ProtocolVersion version)(Code)
Formats a protocol version. This method does not follow the general contract for buffer arguments. It does not clear the argument buffer, but appends instead. The returned buffer can always be modified by the caller. Because of these differing conventions, it is not named formatProtocolVersion.
Parameters:
  buffer - a buffer to which to append, or null
Parameters:
  version - the protocol version to format a buffer with the formatted protocol version appended.The caller is allowed to modify the result buffer.If the buffer argument is not null,the returned buffer is the argument buffer.



formatHeader
CharArrayBuffer formatHeader(CharArrayBuffer buffer, Header header)(Code)
Formats a header. Due to header continuation, the result may be multiple lines. In order to generate well-formed HTTP, the lines in the result must be separated by the HTTP line break sequence CR-LF. There is no trailing CR-LF in the result.
See the class comment for details about the buffer argument.
Parameters:
  buffer - a buffer available for formatting, ornull.The buffer will be cleared before use.
Parameters:
  header - the header to format a buffer holding the formatted header, never null.The returned buffer may be different from the argument buffer.
throws:
  ParseException - in case of a parse error



formatRequestLine
CharArrayBuffer formatRequestLine(CharArrayBuffer buffer, RequestLine reqline)(Code)
Formats a request line.
Parameters:
  buffer - a buffer available for formatting, ornull.The buffer will be cleared before use.
Parameters:
  reqline - the request line to format the formatted request line



formatStatusLine
CharArrayBuffer formatStatusLine(CharArrayBuffer buffer, StatusLine statline)(Code)
Formats a status line.
Parameters:
  buffer - a buffer available for formatting, ornull.The buffer will be cleared before use.
Parameters:
  statline - the status line to format the formatted status line
throws:
  ParseException - in case of a parse error



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