@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.
|
javax.servlet.ServletOutputStream |
getOutputStream(javax.servlet.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(javax.servlet.http.HttpServletResponse response)
Spool the cache file's contents to a response.
|
java.lang.String getKey()
Headers getHeaders()
void spool(javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
response - servlet responsejava.io.IOException - if an I/O error occursjavax.servlet.ServletOutputStream getOutputStream(javax.servlet.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 - 2023 Adobe. All Rights Reserved