@ProviderType 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.
|
ServletOutputStream |
getOutputStream(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(HttpServletResponse response)
Spool the cache file's contents to a response.
|
String getKey()
Headers getHeaders()
void spool(HttpServletResponse response) throws IOException
response
- servlet responseIOException
- if an I/O error occursServletOutputStream getOutputStream(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 © 2010 - 2020 Adobe. All Rights Reserved