Class CacheControlFilter
- java.lang.Object
-
- net.sf.basedb.clients.web.servlet.CacheControlFilter
-
- All Implemented Interfaces:
Filter
public final class CacheControlFilter extends Object implements 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
Fields Modifier and Type Field Description private String
cacheControl
-
Constructor Summary
Constructors Constructor Description CacheControlFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void
init(FilterConfig config)
-
-
-
Field Detail
-
cacheControl
private String cacheControl
-
-
Method Detail
-
init
public void init(FilterConfig config)
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
-