org.jboss.web.tomcat.filters
Class ReplyHeaderFilter
java.lang.Object
org.jboss.web.tomcat.filters.ReplyHeaderFilter
- public class ReplyHeaderFilter
- extends java.lang.Object
A servlet filter that simply adds all header specified in its config
to replies the filter is mapped to. An example would be to set the cache
control max age:
CacheControlFilter
filter.ReplyHeaderFilter
Cache-Control
max-age=3600
CacheControlFilter
/images/*
CacheControlFilter
*.js
|
Method Summary |
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
void |
init(FilterConfig config)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplyHeaderFilter
public ReplyHeaderFilter()
init
public void init(FilterConfig config)
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException
destroy
public void destroy()