Java Doc for BasicValue.java in  » Web-Server » Jigsaw » org » w3c » www » 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 » Jigsaw » org.w3c.www.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.www.http.BasicValue

All known Subclasses:   org.w3c.www.http.HttpTokenList,  org.w3c.www.http.HttpCredential,  org.w3c.www.http.HttpEntityTag,  org.w3c.www.http.HttpAcceptEncodingList,  org.w3c.www.http.HttpEntityTagList,  org.w3c.www.http.HttpBag,  org.w3c.www.http.HttpParamList,  org.w3c.www.http.HttpString,  org.w3c.www.http.HttpRange,  org.w3c.www.http.HttpChallenge,  org.w3c.www.http.HttpAcceptLanguage,  org.w3c.www.http.HttpAcceptList,  org.w3c.www.http.HttpAcceptCharsetList,  org.w3c.www.http.HttpExtList,  org.w3c.www.http.HttpMimeType,  org.w3c.www.http.HttpCookieList,  org.w3c.www.http.HttpRangeList,  org.w3c.www.webdav.DAVTimeout,  org.w3c.www.webdav.DAVStatusURIList,  org.w3c.www.http.HttpWarning,  org.w3c.www.http.HttpContentRange,  org.w3c.www.http.HttpAcceptCharset,  org.w3c.www.http.HttpSetCookieList,  org.w3c.www.http.HttpAcceptLanguageList,  org.w3c.www.http.HttpInteger,  org.w3c.www.webdav.DAVIfList,  org.w3c.www.http.HttpDate,  org.w3c.www.http.HttpWarningList,  org.w3c.www.http.HttpAccept,  org.w3c.www.http.HttpAcceptEncoding,  org.w3c.www.http.HttpCacheControl,
BasicValue
abstract public class BasicValue implements HeaderValue,Cloneable(Code)


Field Summary
protected  booleanisValid
    
protected  byteraw
     The header value, as a byte array, if available.
protected  intrlen
     The length of the byte value in case the above buffer is shared.
protected  introff
     The offset of the value in the above buffer, in case the buffer is shared.

Constructor Summary
public  BasicValue()
    

Method Summary
public  voidaddBytes(byte buf, int off, int len)
     HeaderValue implementation - Add these bytes to the header raw value.
public  voidappendValue(HttpBuffer buf)
     Append this header value to the given output buffer.
final protected  voidcheckByteValue()
     Compute the new RFC822 compatible representation of this header value.
protected  Objectclone()
    
public  voidemit(OutputStream out)
     HeaderValue implementation - Emit this header value to the given output stream.
protected  voiderror(String msg)
     Emit a parsing error.
abstract public  ObjectgetValue()
     HeaderValue implemenntation - Get this header value.
protected  voidinvalidateByteValue()
     Invalidate the current byte value for this header, if any.
abstract protected  voidparse()
     Parse this header value into its various components.
public  voidsetBytes(byte buf, int off, int len)
     HeaderValue implementation - Reset the header byte value.
public  voidsetString(String strval)
     Set this Header Value by parsing the given String.
Parameters:
  strval - The String value for that object.
public  StringtoExternalForm()
     Return a String encoding this header value in an HTTP compatible way.
public  StringtoString()
     Print this header value as it would be emited.
abstract protected  voidupdateByteValue()
     Update the RFC822 compatible header value for this object.
final protected  voidvalidate()
     Validate the parsed value according to the last set raw value.

Field Detail
isValid
protected boolean isValid(Code)
Are the parsed values up to date with the lastly set unparsed value ?



raw
protected byte raw(Code)
The header value, as a byte array, if available.



rlen
protected int rlen(Code)
The length of the byte value in case the above buffer is shared.



roff
protected int roff(Code)
The offset of the value in the above buffer, in case the buffer is shared.




Constructor Detail
BasicValue
public BasicValue()(Code)




Method Detail
addBytes
public void addBytes(byte buf, int off, int len)(Code)
HeaderValue implementation - Add these bytes to the header raw value.
Parameters:
  buf - The byte buffer containing some part of the header value.
Parameters:
  off - The offset of the header value in above buffer.
Parameters:
  len - The length of the header value in above buffer.



appendValue
public void appendValue(HttpBuffer buf)(Code)
Append this header value to the given output buffer. The header value as a byte array.



checkByteValue
final protected void checkByteValue()(Code)
Compute the new RFC822 compatible representation of this header value. If our value is up to date, we just return, otherwise, the abstract updateByteValue is called to perform the job.



clone
protected Object clone() throws CloneNotSupportedException(Code)



emit
public void emit(OutputStream out) throws IOException(Code)
HeaderValue implementation - Emit this header value to the given output stream.
Parameters:
  out - The output stream to emit the header value to.
exception:
  IOException - If some IO error occured.



error
protected void error(String msg) throws HttpParserException(Code)
Emit a parsing error.
Parameters:
  msg - The error message.
exception:
  HttpParserException - If the parsing failed.



getValue
abstract public Object getValue()(Code)
HeaderValue implemenntation - Get this header value. An object representing the parsed value for this header.



invalidateByteValue
protected void invalidateByteValue()(Code)
Invalidate the current byte value for this header, if any.



parse
abstract protected void parse() throws HttpParserException(Code)
Parse this header value into its various components.
exception:
  HttpParserException - if unable to parse.



setBytes
public void setBytes(byte buf, int off, int len)(Code)
HeaderValue implementation - Reset the header byte value.
Parameters:
  buf - The byte buffer containing some part of the header value.
Parameters:
  off - The offset of the header value in above buffer.
Parameters:
  len - The length of the header value in above buffer.



setString
public void setString(String strval)(Code)
Set this Header Value by parsing the given String.
Parameters:
  strval - The String value for that object. Itself.



toExternalForm
public String toExternalForm()(Code)
Return a String encoding this header value in an HTTP compatible way. A String.



toString
public String toString()(Code)
Print this header value as it would be emited. A String representation of this header value.



updateByteValue
abstract protected void updateByteValue()(Code)
Update the RFC822 compatible header value for this object.



validate
final protected void validate() throws HttpInvalidValueException(Code)
Validate the parsed value according to the last set raw value. This will trigger the header value parsing, if it is required at this point.
exception:
  HttpInvalidValueException - If the value couldn't be parsed properly.



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.