public class CacheFilter extends info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter implements CacheModuleLifecycleListener
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_CACHING_CONFIGURATION_NAME |
Constructor and Description |
---|
CacheFilter(CacheModule cacheModule,
CacheMonitor cacheMonitor) |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
String |
getCacheConfigurationName()
Deprecated.
since 5.4, use
getDefaultContentCachingConfigurationName() . |
protected Cache |
getCurrentPageCache() |
String |
getDefaultContentCachingConfigurationName() |
protected CacheModule |
getModule() |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
onCacheModuleStart() |
void |
setCacheConfigurationName(String cacheConfigurationName)
Deprecated.
since 5.4, use
setDefaultContentCachingConfigurationName(String) . |
void |
setDefaultContentCachingConfigurationName(String defaultContentCachingConfigurationName) |
bypasses, doFilter
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, destroy, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, isEnabled, mapsTo, matches, matchesDispatching, setBypasses, setDispatching, setEnabled, setMappings, setName
public static final String DEFAULT_CONTENT_CACHING_CONFIGURATION_NAME
@Inject public CacheFilter(CacheModule cacheModule, CacheMonitor cacheMonitor)
@Deprecated public String getCacheConfigurationName()
getDefaultContentCachingConfigurationName()
.@Deprecated public void setCacheConfigurationName(String cacheConfigurationName)
setDefaultContentCachingConfigurationName(String)
.public String getDefaultContentCachingConfigurationName()
public void setDefaultContentCachingConfigurationName(String defaultContentCachingConfigurationName)
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
init
in class info.magnolia.cms.filters.AbstractMgnlFilter
javax.servlet.ServletException
public void onCacheModuleStart()
onCacheModuleStart
in interface CacheModuleLifecycleListener
protected Cache getCurrentPageCache()
protected CacheModule getModule()
public void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in class info.magnolia.cms.filters.AbstractMgnlFilter
IOException
javax.servlet.ServletException
Copyright © 2015 Magnolia International Ltd.. All rights reserved.