Java Doc for HTTPMessage.java in  » Web-Server » JicarillaHTTP » org » jicarilla » 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 » Web Server » JicarillaHTTP » org.jicarilla.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jicarilla.http.HTTPMessage

HTTPMessage
public class HTTPMessage implements Recyclable(Code)
JavaBean modelling an HTTP protocol message. Doesn't provide argument verification. Can be used either to model a request or a response.
author:
   Leo Simons
version:
   $Id: HTTPMessage.java,v 1.6 2004/03/23 13:37:48 lsimons Exp $


Field Summary
final public static  booleanTYPE_REQUEST
    
final public static  booleanTYPE_RESPONSE
    
protected  Listm_bodyParts
    
protected  ByteBufferm_field1
    
protected  ByteBufferm_field2
    
protected  ByteBufferm_field3
    
protected  Listm_headers
    
protected  booleanm_isComplete
    
protected  booleanm_isRequest
    

Constructor Summary
public  HTTPMessage()
     Default constructor.

Method Summary
public  voidaddBodyPart(ByteBuffer buffer)
     Add a piece of the body associated with this message.
public  voidaddBodyPart(String string)
    
public  voidaddBodyParts(ByteBuffer[] buffers)
    
public  voidaddHeader(ByteBuffer name, ByteBuffer value)
     Add a parsed HTTP header to the set of headers associated with this message.
public  voidaddHeader(String name, String value)
    
public  StringgetBodyAsString()
    
public  ByteBuffer[]getBodyParts()
     Get an ordered array of the body parts associated with this message.
public  ByteBuffergetField1()
     Get the first HTTP header line field.
public  StringgetField1String()
     Get the first HTTP header line field as a string.
public  ByteBuffergetField2()
     Get the second HTTP header line field.
public  StringgetField2String()
     Get the second HTTP header line field as a string.
public  ByteBuffergetField3()
     Get the third HTTP header line field.
public  StringgetField3String()
     Get the third HTTP header line field as a string.
public  ListgetHeaders()
     Get an unmodifiable map of the HTTP headers associated with this message.
public  booleangetMessageType()
     Determine whether this message represents a request or a response.
public  intgetStatusCode()
    
public  booleanisComplete()
    
public  voidrecycle()
    
public  voidsetComplete(boolean complete)
    
public  voidsetField1(ByteBuffer field)
     Set the first HTTP header line field.
public  voidsetField1(String field)
    
public  voidsetField2(ByteBuffer field2)
     Set the second HTTP header line field.
public  voidsetField2(String field)
    
public  voidsetField3(ByteBuffer field)
     Set the third HTTP header line field.
public  voidsetField3(String field)
    
public  voidsetMessageType(boolean isRequest)
     Mark whether this message models a request or a response.
public  voidsetStatusCode(ByteBuffer statusCode)
    
public  voidsetStatusCode(int code)
    

Field Detail
TYPE_REQUEST
final public static boolean TYPE_REQUEST(Code)



TYPE_RESPONSE
final public static boolean TYPE_RESPONSE(Code)



m_bodyParts
protected List m_bodyParts(Code)



m_field1
protected ByteBuffer m_field1(Code)



m_field2
protected ByteBuffer m_field2(Code)



m_field3
protected ByteBuffer m_field3(Code)



m_headers
protected List m_headers(Code)



m_isComplete
protected boolean m_isComplete(Code)



m_isRequest
protected boolean m_isRequest(Code)




Constructor Detail
HTTPMessage
public HTTPMessage()(Code)
Default constructor.




Method Detail
addBodyPart
public void addBodyPart(ByteBuffer buffer)(Code)
Add a piece of the body associated with this message. No verification of the buffer is done.
Parameters:
  buffer - the body part to append



addBodyPart
public void addBodyPart(String string)(Code)



addBodyParts
public void addBodyParts(ByteBuffer[] buffers)(Code)



addHeader
public void addHeader(ByteBuffer name, ByteBuffer value)(Code)
Add a parsed HTTP header to the set of headers associated with this message. No verification of the arguments is done.
Parameters:
  name - The new header name
Parameters:
  value - The new header value



addHeader
public void addHeader(String name, String value)(Code)



getBodyAsString
public String getBodyAsString()(Code)



getBodyParts
public ByteBuffer[] getBodyParts()(Code)
Get an ordered array of the body parts associated with this message. the body parts of this message



getField1
public ByteBuffer getField1()(Code)
Get the first HTTP header line field. the field, or null if it hasn't been set



getField1String
public String getField1String()(Code)
Get the first HTTP header line field as a string. the field, or null if it hasn't been set



getField2
public ByteBuffer getField2()(Code)
Get the second HTTP header line field. the field, or null if it hasn't been set



getField2String
public String getField2String()(Code)
Get the second HTTP header line field as a string. the field, or null if it hasn't been set



getField3
public ByteBuffer getField3()(Code)
Get the third HTTP header line field. the field, or null if it hasn't been set



getField3String
public String getField3String()(Code)
Get the third HTTP header line field as a string. the field, or null if it hasn't been set



getHeaders
public List getHeaders()(Code)
Get an unmodifiable map of the HTTP headers associated with this message. No verification of the headers is done. an unmodifiable List of the HTTP headers, which mightbe empty



getMessageType
public boolean getMessageType()(Code)
Determine whether this message represents a request or a response. true if the message represents arequest, false if it represents a response



getStatusCode
public int getStatusCode()(Code)



isComplete
public boolean isComplete()(Code)



recycle
public void recycle()(Code)



setComplete
public void setComplete(boolean complete)(Code)



setField1
public void setField1(ByteBuffer field)(Code)
Set the first HTTP header line field.
Parameters:
  field - the first HTTP header line field



setField1
public void setField1(String field)(Code)



setField2
public void setField2(ByteBuffer field2)(Code)
Set the second HTTP header line field.
Parameters:
  field2 - the second HTTP header line field



setField2
public void setField2(String field)(Code)



setField3
public void setField3(ByteBuffer field)(Code)
Set the third HTTP header line field.
Parameters:
  field - the third HTTP header line field



setField3
public void setField3(String field)(Code)



setMessageType
public void setMessageType(boolean isRequest)(Code)
Mark whether this message models a request or a response.
Parameters:
  isRequest - true if the message should behave like arequest, false if it should behave like a response



setStatusCode
public void setStatusCode(ByteBuffer statusCode)(Code)



setStatusCode
public void setStatusCode(int code)(Code)



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.