public class CacheFilter extends info.magnolia.cms.filters.AbstractMgnlFilter implements CacheModuleLifecycleListener
Constructor and Description |
---|
CacheFilter(javax.inject.Provider<info.magnolia.context.WebContext> webContextProvider,
CacheModule cacheModule,
CacheMonitor cacheMonitor,
javax.inject.Provider<CachePolicyResultProvider> cachePolicyResultProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
bypasses(javax.servlet.http.HttpServletRequest request) |
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
protected Cache |
getCurrentPageCache() |
String |
getDefaultContentCachingConfigurationName() |
protected CacheModule |
getModule() |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
onCacheModuleStart() |
void |
setDefaultContentCachingConfigurationName(String defaultContentCachingConfigurationName) |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, destroy, doFilter, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, isEnabled, mapsTo, matches, matchesDispatching, setBypasses, setDispatching, setEnabled, setMappings, setName
@Inject public CacheFilter(javax.inject.Provider<info.magnolia.context.WebContext> webContextProvider, CacheModule cacheModule, CacheMonitor cacheMonitor, javax.inject.Provider<CachePolicyResultProvider> cachePolicyResultProvider)
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
public boolean bypasses(javax.servlet.http.HttpServletRequest request)
bypasses
in class info.magnolia.cms.filters.AbstractMgnlFilter
Copyright © 2019 Magnolia International Ltd.. All rights reserved.