info.magnolia.module.cache.filter
Class CacheFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
info.magnolia.module.cache.filter.CacheFilter
- All Implemented Interfaces:
- info.magnolia.cms.filters.MgnlFilter, CacheModuleLifecycleListener, javax.servlet.Filter
public class CacheFilter
- extends info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
- implements CacheModuleLifecycleListener
Uses the CachePolicy to determine the cache behavior. Uses then the
CacheConfiguration to get the executors to be executed.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter |
bypasses, doFilter |
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, destroy, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, isEnabled, mapsTo, matches, matchesDispatching, setDispatching, setEnabled, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheFilter
public CacheFilter(CacheModule cacheModule,
CacheMonitor cacheMonitor)
getCacheConfigurationName
public String getCacheConfigurationName()
setCacheConfigurationName
public void setCacheConfigurationName(String cacheConfigurationName)
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class info.magnolia.cms.filters.AbstractMgnlFilter
- Throws:
javax.servlet.ServletException
onCacheModuleStart
public void onCacheModuleStart()
- Specified by:
onCacheModuleStart
in interface CacheModuleLifecycleListener
getModule
protected CacheModule getModule()
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in class info.magnolia.cms.filters.AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.