| java.lang.Object com.caucho.server.dispatch.AbstractFilterChain com.caucho.server.cache.AbstractCacheFilterChain
Method Summary | |
abstract public boolean | fillFromCache(CauchoRequest req, AbstractHttpResponse response, AbstractCacheEntry abstractEntry, boolean isTop) fillFromCache is called when the client needs the entire result, and
the result is already in the cache. | abstract public void | finishCaching(AbstractCacheEntry entry) Update the headers when the caching has finished. | abstract public void | killCaching(AbstractCacheEntry entry) Cleanup the cache entry on a failed cache attempt. | abstract public AbstractCacheEntry | startCaching(CauchoRequest req, AbstractHttpResponse res, ArrayList<String> keys, ArrayList<String> values, String contentType, String charEncoding, long contentLength) Starts the caching after the headers have been sent. |
fillFromCache | abstract public boolean fillFromCache(CauchoRequest req, AbstractHttpResponse response, AbstractCacheEntry abstractEntry, boolean isTop) throws IOException(Code) | | fillFromCache is called when the client needs the entire result, and
the result is already in the cache.
Parameters: req - the servlet request trying to get data from the cache Parameters: response - the servlet response which will receive data Parameters: entry - the cache entry to use Parameters: isTop - if true, the not-modified should be sent to the browser |
finishCaching | abstract public void finishCaching(AbstractCacheEntry entry)(Code) | | Update the headers when the caching has finished.
Parameters: okay - if true, the cache if valid |
killCaching | abstract public void killCaching(AbstractCacheEntry entry)(Code) | | Cleanup the cache entry on a failed cache attempt.
|
startCaching | abstract public AbstractCacheEntry startCaching(CauchoRequest req, AbstractHttpResponse res, ArrayList<String> keys, ArrayList<String> values, String contentType, String charEncoding, long contentLength)(Code) | | Starts the caching after the headers have been sent.
Parameters: req - the servlet request Parameters: req - the servlet response Parameters: keys - the saved header keys Parameters: values - the saved header values Parameters: contentType - the response content type Parameters: charEncoding - the response character encoding the output stream to store the cache value or null ifuncacheable. |
|
|