org.openmdx.portal.servlet.filter
Class ReplyHeaderFilter

java.lang.Object
  extended by org.openmdx.portal.servlet.filter.ReplyHeaderFilter
All Implemented Interfaces:
Filter

public class ReplyHeaderFilter
extends Object
implements Filter

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


Constructor Summary
ReplyHeaderFilter()
           
 
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
 

Constructor Detail

ReplyHeaderFilter

public ReplyHeaderFilter()
Method Detail

init

public void init(FilterConfig config)
Specified by:
init in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter


This software is published under the BSD license. Copyright © 2006-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.