java.lang.Object
com.semanticcms.core.servlet.CacheFilter
- All Implemented Interfaces:
Filter
Resolves the cache to use for the current request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain) static CachegetCache(ServletRequest request) Gets the cache to use for the current request.voidinit(FilterConfig config)
-
Constructor Details
-
CacheFilter
public CacheFilter()
-
-
Method Details
-
getCache
Gets the cache to use for the current request. All uses of this cache must synchronize on the map itself.- Throws:
IllegalStateException- if the filter is not active on the current request
-
init
- Specified by:
initin interfaceFilter- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilterin interfaceFilter- Throws:
IOExceptionServletException
-
destroy
public void destroy()
-
