|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.cache.AbstractCacheFilterChain
com.caucho.server.cache.ProxyCacheFilterChain
public class ProxyCacheFilterChain
Represents the proxy cache in a filter chain.
| Constructor Summary | |
|---|---|
ProxyCacheFilterChain(Cache cache,
FilterChain next,
WebApp webApp)
Create the filter chain servlet. |
|
ProxyCacheFilterChain(FilterChain next,
WebApp webApp)
Create the filter chain servlet. |
|
| Method Summary | |
|---|---|
void |
clearExpires()
Clears the expires timers |
void |
doFilter(ServletRequest request,
ServletResponse response)
Handles caching for the filter. |
ProxyCacheEntry |
fillEntry(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)
|
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. |
void |
finishCaching(CauchoResponse res)
Update the headers when the caching has finished. |
long |
getHitCount()
|
FilterChain |
getNext()
|
java.lang.String |
getUri()
|
WebApp |
getWebApp()
|
void |
killCaching(CauchoResponse res)
Update the headers when the caching has finished. |
void |
removeEvent()
Callback when the item has been removed from the cache, usually because of an LRU event. |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyCacheFilterChain(FilterChain next,
WebApp webApp)
public ProxyCacheFilterChain(Cache cache,
FilterChain next,
WebApp webApp)
| Method Detail |
|---|
public long getHitCount()
public WebApp getWebApp()
public java.lang.String getUri()
public FilterChain getNext()
getNext in interface CauchoFilterChainpublic void clearExpires()
public void doFilter(ServletRequest request,
ServletResponse response)
throws ServletException,
java.io.IOException
doFilter in interface FilterChainreq - the servlet requestres - the servlet response
ServletException
java.io.IOException
public boolean fillFromCache(CauchoRequest req,
CauchoResponse response,
AbstractCacheEntry abstractEntry)
throws java.io.IOException
fillFromCache in class AbstractCacheFilterChainreq - the servlet request trying to get data from the cacheresponse - the servlet response which will receive dataentry - the cache entry to useisSyntheticHeader - if false, the not-modified should be sent to the browser
java.io.IOException
public 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)
startCaching in class AbstractCacheFilterChainreq - the servlet requestreq - the servlet responsekeys - the saved header keysvalues - the saved header valuescontentType - the response content typecharEncoding - the response character encoding
public ProxyCacheEntry fillEntry(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)
public void finishCaching(CauchoResponse res)
finishCaching in class AbstractCacheFilterChainokay - if true, the cache if validpublic void killCaching(CauchoResponse res)
killCaching in class AbstractCacheFilterChainokay - if true, the cache if validpublic void removeEvent()
removeEvent in interface CacheListenerpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||