|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.dispatch.AbstractFilterChain
com.caucho.server.cache.AbstractCacheFilterChain
public abstract class AbstractCacheFilterChain
Represents the final servlet in a filter chain.
| Constructor Summary | |
|---|---|
AbstractCacheFilterChain()
|
|
| Method Summary | |
|---|---|
abstract 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 void |
finishCaching(AbstractCacheEntry entry)
Update the headers when the caching has finished. |
abstract void |
killCaching(AbstractCacheEntry entry)
Cleanup the cache entry on a failed cache attempt. |
abstract AbstractCacheEntry |
startCaching(CauchoRequest req,
AbstractHttpResponse 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 com.caucho.server.dispatch.AbstractFilterChain |
|---|
doResume, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.servlet.FilterChain |
|---|
doFilter |
| Constructor Detail |
|---|
public AbstractCacheFilterChain()
| Method Detail |
|---|
public abstract boolean fillFromCache(CauchoRequest req,
AbstractHttpResponse response,
AbstractCacheEntry abstractEntry,
boolean isTop)
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 useisTop - if true, the not-modified should be sent to the browser
java.io.IOException
public abstract AbstractCacheEntry startCaching(CauchoRequest req,
AbstractHttpResponse 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(AbstractCacheEntry entry)
okay - if true, the cache if validpublic abstract void killCaching(AbstractCacheEntry entry)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||