Class CacheControlFilter
java.lang.Object
net.sf.basedb.clients.web.servlet.CacheControlFilter
- All Implemented Interfaces:
Filter
This is a filter that sets the "Cache-Control" header
in the http response. It can be useful in a development
environment to, for example, disable caching of *.js
and *.css files. See example in the web.xml file.
- Since:
- 3.1
- Author:
- Nicklas
- Last modified
- $Date: 2011-12-07 14:43:15 +0100 (on, 07 dec 2011) $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) void
init
(FilterConfig config)
-
Field Details
-
cacheControl
-
-
Constructor Details
-
CacheControlFilter
public CacheControlFilter()
-
-
Method Details
-
init
-
destroy
public void destroy() -
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-