public class PageCacheFilter
extends net.sf.ehcache.constructs.web.filter.CachingFilter
Filter
which caches responses based on the request. Largely based on CachingFilter
Constructor and Description |
---|
PageCacheFilter() |
Modifier and Type | Method and Description |
---|---|
protected net.sf.ehcache.constructs.web.PageInfo |
buildPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
protected net.sf.ehcache.constructs.web.PageInfo |
buildPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
net.sf.ehcache.constructs.blocking.BlockingCache blockingCache) |
protected net.sf.ehcache.constructs.web.PageInfo |
buildPageInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
protected net.sf.ehcache.constructs.web.PageInfo |
buildPageInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
net.sf.ehcache.constructs.blocking.BlockingCache blockingCache) |
protected String |
calculateKey(javax.servlet.http.HttpServletRequest request) |
protected void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
void |
doInit(javax.servlet.FilterConfig filterConfig) |
protected net.sf.ehcache.CacheManager |
getCacheManager() |
checkNoReentry, doDestroy, getCacheName, setCacheNameIfAnyConfigured, setContentType, setCookies, setHeaders, setStatus, writeContent, writeResponse
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, Exception
doFilter
in class net.sf.ehcache.constructs.web.filter.CachingFilter
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
Exception
protected net.sf.ehcache.constructs.web.PageInfo buildPageInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, net.sf.ehcache.constructs.blocking.BlockingCache blockingCache) throws Exception
Exception
protected net.sf.ehcache.constructs.web.PageInfo buildPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain, net.sf.ehcache.constructs.blocking.BlockingCache blockingCache) throws net.sf.ehcache.constructs.web.AlreadyGzippedException, Exception
net.sf.ehcache.constructs.web.AlreadyGzippedException
Exception
protected String calculateKey(javax.servlet.http.HttpServletRequest request)
calculateKey
in class net.sf.ehcache.constructs.web.filter.CachingFilter
protected net.sf.ehcache.constructs.web.PageInfo buildPageInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws Exception
buildPageInfo
in class net.sf.ehcache.constructs.web.filter.CachingFilter
Exception
protected net.sf.ehcache.constructs.web.PageInfo buildPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws net.sf.ehcache.constructs.web.AlreadyGzippedException, Exception
buildPage
in class net.sf.ehcache.constructs.web.filter.CachingFilter
net.sf.ehcache.constructs.web.AlreadyGzippedException
Exception
public void doInit(javax.servlet.FilterConfig filterConfig) throws net.sf.ehcache.CacheException
doInit
in class net.sf.ehcache.constructs.web.filter.CachingFilter
net.sf.ehcache.CacheException
protected net.sf.ehcache.CacheManager getCacheManager()
getCacheManager
in class net.sf.ehcache.constructs.web.filter.CachingFilter
Copyright © 2011–2017 aiticon GmbH. All rights reserved.