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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) static Cache
getCache
(ServletRequest request) Gets the cache to use for the current request.void
init
(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:
init
in interfaceFilter
- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
destroy
public void destroy()
-