|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.constructs.web.filter.Filter
net.sf.ehcache.constructs.web.filter.CachingFilter
net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter
net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter
fr.paris.lutece.portal.service.cache.HeadersPageCachingFilter
public class HeadersPageCachingFilter
Headers Page Caching Filter based on EHCACHE WEB
| Field Summary |
|---|
| Fields inherited from class net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter |
|---|
NAME |
| Fields inherited from class net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter |
|---|
DEFAULT_CACHE_NAME |
| Fields inherited from class net.sf.ehcache.constructs.web.filter.CachingFilter |
|---|
blockingCache, cacheName |
| Fields inherited from class net.sf.ehcache.constructs.web.filter.Filter |
|---|
exceptionsToLogDifferently, filterConfig, NO_FILTER, suppressStackTraces |
| Constructor Summary | |
|---|---|
HeadersPageCachingFilter()
|
|
| Method Summary | |
|---|---|
protected void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
|
void |
doInit(javax.servlet.FilterConfig filterConfig)
|
void |
enableCache(boolean bEnable)
Enable the cache |
protected java.lang.String |
getCacheName()
This method is overriden to provide the cache name |
int |
getCacheSize()
Gets the number of item currently in the cache. |
java.lang.String |
getInfos()
Returns cache infos |
java.util.List<java.lang.String> |
getKeys()
Gets all keys in the cache |
int |
getMaxElements()
Returns maximum elements accepted into the cache |
long |
getMemorySize()
Return the memory size |
java.lang.String |
getName()
Returns the Service name |
long |
getTimeToLive()
Returns the time to live for objects in the cache |
boolean |
isCacheEnable()
Gets the current cache status. |
void |
resetCache()
Reset the cache. |
| Methods inherited from class net.sf.ehcache.constructs.web.filter.SimpleCachingHeadersPageCachingFilter |
|---|
buildPage, calculateTimeToLiveMilliseconds, getHttpDateFormatter, writeResponse |
| Methods inherited from class net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter |
|---|
calculateKey, getCacheManager |
| Methods inherited from class net.sf.ehcache.constructs.web.filter.CachingFilter |
|---|
buildPageInfo, checkNoReentry, doDestroy, setCacheNameIfAnyConfigured, setContentType, setCookies, setHeaders, setStatus, writeContent |
| Methods inherited from class net.sf.ehcache.constructs.web.filter.Filter |
|---|
acceptsEncoding, acceptsGzipEncoding, destroy, doFilter, filterNotDisabled, getFilterConfig, init, logRequestHeaders, processInitParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeadersPageCachingFilter()
| Method Detail |
|---|
public void doInit(javax.servlet.FilterConfig filterConfig)
throws net.sf.ehcache.CacheException
doInit in class net.sf.ehcache.constructs.web.filter.CachingFilternet.sf.ehcache.CacheExceptionprotected java.lang.String getCacheName()
getCacheName in class net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter
protected void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws net.sf.ehcache.constructs.web.AlreadyGzippedException,
net.sf.ehcache.constructs.web.AlreadyCommittedException,
net.sf.ehcache.constructs.web.filter.FilterNonReentrantException,
net.sf.ehcache.constructs.blocking.LockTimeoutException,
java.lang.Exception
doFilter in class net.sf.ehcache.constructs.web.filter.CachingFilternet.sf.ehcache.constructs.web.AlreadyGzippedException
net.sf.ehcache.constructs.web.AlreadyCommittedException
net.sf.ehcache.constructs.web.filter.FilterNonReentrantException
net.sf.ehcache.constructs.blocking.LockTimeoutException
java.lang.Exceptionpublic boolean isCacheEnable()
isCacheEnable in interface CacheableServicepublic int getCacheSize()
getCacheSize in interface CacheableServicepublic void resetCache()
resetCache in interface CacheableServicepublic java.lang.String getName()
getName in interface LuteceServicepublic void enableCache(boolean bEnable)
enableCache in interface CacheableServicebEnable - true to enable, false to disablepublic java.util.List<java.lang.String> getKeys()
getKeys in interface CacheableServicepublic int getMaxElements()
getMaxElements in interface CacheableServicepublic long getTimeToLive()
getTimeToLive in interface CacheableServicepublic long getMemorySize()
getMemorySize in interface CacheableServicepublic java.lang.String getInfos()
getInfos in interface CacheableService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||