public interface CacheFile
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discard this cache file.
|
Headers |
getHeaders()
Return the HTTP response headers stored with this entry.
|
String |
getKey()
Return the cache key.
|
javax.servlet.ServletOutputStream |
getOutputStream(javax.servlet.ServletOutputStream base)
Open an output stream that will contain a copy of the response body.
|
PrintWriter |
getWriter(PrintWriter base,
String encoding)
Open a print writer.
|
boolean |
save()
Keep this cache file.
|
void |
spool(javax.servlet.http.HttpServletResponse response)
Spool the cache file's contents to a response.
|
String getKey()
Headers getHeaders()
void spool(javax.servlet.http.HttpServletResponse response) throws IOException
response
- servlet responseIOException
- if an I/O error occursjavax.servlet.ServletOutputStream getOutputStream(javax.servlet.ServletOutputStream base) throws IOException
base
- base output streamIOException
- if an I/O error occursPrintWriter getWriter(PrintWriter base, String encoding) throws IOException
base
- base writerencoding
- response body encodingIOException
- if an I/O error occursboolean save()
true
if the save was successful;
false
otherwisevoid discard()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"