@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.
|
java.lang.String |
getKey()
Return the cache key.
|
ServletOutputStream |
getOutputStream(ServletOutputStream base)
Open an output stream that will contain a copy of the response body.
|
java.io.PrintWriter |
getWriter(java.io.PrintWriter base,
java.lang.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.
|
java.lang.String getKey()
Headers getHeaders()
void spool(HttpServletResponse response) throws java.io.IOException
response
- servlet responsejava.io.IOException
- if an I/O error occursServletOutputStream getOutputStream(ServletOutputStream base) throws java.io.IOException
base
- base output streamjava.io.IOException
- if an I/O error occursjava.io.PrintWriter getWriter(java.io.PrintWriter base, java.lang.String encoding) throws java.io.IOException
base
- base writerencoding
- response body encodingjava.io.IOException
- if an I/O error occursboolean save()
true
if the save was successful;
false
otherwisevoid discard()
Copyright © 2010 - 2020 Adobe. All Rights Reserved