Java Doc for ResponseContent.java in  » Cache » OSCache » com » opensymphony » oscache » web » filter » 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
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Cache » OSCache » com.opensymphony.oscache.web.filter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.opensymphony.oscache.web.filter.ResponseContent

ResponseContent
public class ResponseContent implements Serializable(Code)
Holds the servlet response in a byte array so that it can be held in the cache (and, since this class is serializable, optionally persisted to disk).
version:
   $Revision: 362 $
author:
   Serge Knystautas




Method Summary
public  voidcommit()
     Called once the response has been written in its entirety.
public  StringgetContentEncoding()
    
public  StringgetContentType()
    
public  longgetExpires()
    
public  longgetLastModified()
    
public  longgetMaxAge()
     Returns the max age of the content in miliseconds.
public  OutputStreamgetOutputStream()
     Get an output stream.
public  intgetSize()
     Gets the size of this cached content. The size of the content, in bytes.
public  booleanisContentGZiped()
    
public  voidsetContentEncoding(String contentEncoding)
    
public  voidsetContentType(String value)
     Set the content type.
public  voidsetExpires(long value)
     Sets the expires date and time in miliseconds.
public  voidsetLastModified(long value)
    
public  voidsetLocale(Locale value)
     Set the Locale.
public  voidsetMaxAge(long value)
     Sets the max age date and time in miliseconds.
public  voidwriteTo(ServletResponse response)
     Writes this cached data out to the supplied ServletResponse.
public  voidwriteTo(ServletResponse response, boolean fragment, boolean acceptsGZip)
     Writes this cached data out to the supplied ServletResponse.



Method Detail
commit
public void commit()(Code)
Called once the response has been written in its entirety. This method commits the response output stream by converting the output stream into a byte array.



getContentEncoding
public String getContentEncoding()(Code)



getContentType
public String getContentType()(Code)



getExpires
public long getExpires()(Code)
the expires date and time in miliseconds when the content will be stale



getLastModified
public long getLastModified()(Code)



getMaxAge
public long getMaxAge()(Code)
Returns the max age of the content in miliseconds. If expires header and cache control are enabled both, both will be equal. the max age of the content in miliseconds, if -1 max-age is disabled



getOutputStream
public OutputStream getOutputStream()(Code)
Get an output stream. This is used by the SplitServletOutputStream to capture the original (uncached) response into a byte array. the original (uncached) response, returns null if response is already committed.



getSize
public int getSize()(Code)
Gets the size of this cached content. The size of the content, in bytes. If no contentexists, this method returns -1.



isContentGZiped
public boolean isContentGZiped()(Code)
true if the content is GZIP compressed



setContentEncoding
public void setContentEncoding(String contentEncoding)(Code)



setContentType
public void setContentType(String value)(Code)
Set the content type. We capture this so that when we serve this data from cache, we can set the correct content type on the response.



setExpires
public void setExpires(long value)(Code)
Sets the expires date and time in miliseconds.
Parameters:
  value - time in miliseconds when the content will expire



setLastModified
public void setLastModified(long value)(Code)



setLocale
public void setLocale(Locale value)(Code)
Set the Locale. We capture this so that when we serve this data from cache, we can set the correct locale on the response.



setMaxAge
public void setMaxAge(long value)(Code)
Sets the max age date and time in miliseconds. If the parameter is -1, the max-age parameter won't be set by default in the Cache-Control header.
Parameters:
  value - sets the intial



writeTo
public void writeTo(ServletResponse response) throws IOException(Code)
Writes this cached data out to the supplied ServletResponse.
Parameters:
  response - The servlet response to output the cached content to.
throws:
  IOException -



writeTo
public void writeTo(ServletResponse response, boolean fragment, boolean acceptsGZip) throws IOException(Code)
Writes this cached data out to the supplied ServletResponse.
Parameters:
  response - The servlet response to output the cached content to.
Parameters:
  fragment - is true if this content a fragment or part of a page
Parameters:
  acceptsGZip - is true if client browser supports gzip compression
throws:
  IOException -



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 2010 - 2030 Java Source and Support. All rights reserved.
All other trademarks are property of their respective owners.