|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.web.filter.ResponseContent
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).
Constructor Summary | |
ResponseContent()
|
Method Summary | |
void |
commit()
Called once the response has been written in its entirety. |
java.io.OutputStream |
getOutputStream()
Get an output stream. |
int |
getSize()
Gets the size of this cached content. |
void |
setContentType(java.lang.String value)
Set the content type. |
void |
setLocale(java.util.Locale value)
Set the Locale. |
void |
writeTo(javax.servlet.ServletResponse response)
Writes this cached data out to the supplied ServletResponse . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResponseContent()
Method Detail |
public void setContentType(java.lang.String value)
public void setLocale(java.util.Locale value)
public java.io.OutputStream getOutputStream()
SplitServletOutputStream
to capture the original (uncached) response into a byte array.
public int getSize()
-1
.public void commit()
public void writeTo(javax.servlet.ServletResponse response) throws java.io.IOException
ServletResponse
.
response
- The servlet response to output the cached content to.
java.io.IOException
|
See www.opensymphony.com for more information. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |