|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.server.httpcache.AbstractCacheFilterChain
public abstract class AbstractCacheFilterChain
Represents the final servlet in a filter chain.
Constructor Summary | |
---|---|
AbstractCacheFilterChain()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.FilterChain |
---|
doFilter |
Constructor Detail |
---|
public AbstractCacheFilterChain()
Method Detail |
---|
public 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 use
java.io.IOException
public 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 encoding
public abstract void finishCaching(CauchoResponse res)
okay
- if true, the cache if validpublic abstract void killCaching(CauchoResponse res)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |