info.magnolia.module.cache.filter
Class CacheFilter

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
          extended by info.magnolia.module.cache.filter.CacheFilter
All Implemented Interfaces:
MgnlFilter, CacheModuleLifecycleListener, javax.servlet.Filter

public class CacheFilter
extends 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

Constructor Summary
CacheFilter()
           
 
Method Summary
 void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)
           
 String getCacheConfigurationName()
           
protected  CacheModule getModule()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 void onCacheModuleStart()
           
 void setCacheConfigurationName(String cacheConfigurationName)
           
 
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
 

Constructor Detail

CacheFilter

public CacheFilter()
Method Detail

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 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 AbstractMgnlFilter
Throws:
IOException
javax.servlet.ServletException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.