com.opensymphony.oscache.web.filter
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
ResponseContent()
|
|
| Method Summary | |
|---|---|
void |
commit()
Called once the response has been written in its entirety. |
String |
getContentDisposition()
|
String |
getContentEncoding()
|
String |
getContentType()
|
String |
getETag()
|
long |
getExpires()
|
long |
getLastModified()
|
long |
getMaxAge()
Returns the max age of the content in milliseconds. |
OutputStream |
getOutputStream()
Get an output stream. |
int |
getSize()
Gets the size of this cached content. |
boolean |
isContentGZiped()
|
void |
setContentDisposition(String contentDisposition)
|
void |
setContentEncoding(String contentEncoding)
|
void |
setContentType(String value)
Set the content type. |
void |
setETag(String etag)
|
void |
setExpires(long value)
Sets the expires date and time in milliseconds. |
void |
setLastModified(long value)
|
void |
setLocale(Locale value)
Set the Locale. |
void |
setMaxAge(long value)
Sets the max age date and time in milliseconds. |
void |
writeTo(ServletResponse response)
Writes this cached data out to the supplied ServletResponse. |
void |
writeTo(ServletResponse response,
boolean fragment,
boolean acceptsGZip)
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 String getContentType()
public void setContentType(String value)
public long getLastModified()
public void setLastModified(long value)
public String getContentEncoding()
public void setContentEncoding(String contentEncoding)
public String getETag()
public void setETag(String etag)
public String getContentDisposition()
public void setContentDisposition(String contentDisposition)
public void setLocale(Locale value)
public long getExpires()
public void setExpires(long value)
value - time in milliseconds when the content will expirepublic long getMaxAge()
public void setMaxAge(long value)
value - sets the intialpublic OutputStream getOutputStream()
SplitServletOutputStream
to capture the original (uncached) response into a byte array.
public int getSize()
-1.public void commit()
public void writeTo(ServletResponse response) throws IOException
ServletResponse.
response - The servlet response to output the cached content to.
IOExceptionpublic void writeTo(ServletResponse response, boolean fragment, boolean acceptsGZip) throws IOException
ServletResponse.
response - The servlet response to output the cached content to.fragment - is true if this content a fragment or part of a pageacceptsGZip - is true if client browser supports gzip compression
IOExceptionpublic boolean isContentGZiped()
|
OSCache Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||