public abstract class AbstractCacheFilterChain extends java.lang.Object implements FilterChain
| Constructor and Description |
|---|
AbstractCacheFilterChain() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
fillFromCache(CauchoRequest req,
CauchoResponse response,
AbstractCacheEntry abstractEntry)
fillFromCache is called when the client needs the entire result, and
the result is already in the cache.
|
abstract void |
finishCaching(CauchoResponse res)
Update the headers when the caching has finished.
|
abstract void |
killCaching(CauchoResponse res)
Cleanup the cache entry on a failed cache attempt.
|
abstract AbstractCacheEntry |
startCaching(CauchoRequest req,
CauchoResponse res,
java.util.ArrayList<java.lang.String> keys,
java.util.ArrayList<java.lang.String> values,
java.lang.String contentType,
java.lang.String charEncoding,
long contentLength)
Starts the caching after the headers have been sent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoFilterpublic abstract boolean fillFromCache(CauchoRequest req, CauchoResponse response, AbstractCacheEntry abstractEntry) throws java.io.IOException
req - the servlet request trying to get data from the cacheresponse - the servlet response which will receive dataentry - the cache entry to usejava.io.IOExceptionpublic abstract AbstractCacheEntry startCaching(CauchoRequest req, CauchoResponse res, java.util.ArrayList<java.lang.String> keys, java.util.ArrayList<java.lang.String> values, java.lang.String contentType, java.lang.String charEncoding, long contentLength)
req - the servlet requestreq - the servlet responsekeys - the saved header keysvalues - the saved header valuescontentType - the response content typecharEncoding - the response character encodingpublic abstract void finishCaching(CauchoResponse res)
okay - if true, the cache if validpublic abstract void killCaching(CauchoResponse res)