org.makumba.controller.http
Class CharsetFilter

java.lang.Object
  extended by org.makumba.controller.http.CharsetFilter
All Implemented Interfaces:
Filter

public class CharsetFilter
extends Object
implements Filter

This is a filter making sure the charset encoding is set (for now, only UTF-8 is supported).

Version:
$Id: CharsetFilter.java 3686 2009-02-04 15:57:03Z rosso_nero $
Author:
Marius Andra, Manuel Gay

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

CharsetFilter

public CharsetFilter()
Method Detail

init

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

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