org.makumba.controller
Class CharsetControllerHandler

java.lang.Object
  extended by org.makumba.commons.ControllerHandler
      extended by org.makumba.controller.CharsetControllerHandler

public class CharsetControllerHandler
extends ControllerHandler

Sets the utf8 charset encoding if enabled in the datasource configuration

Version:
$Id: CharsetControllerHandler.java,v 1.1 Sep 23, 2009 3:55:49 PM manu Exp $
Author:
Marius Andra, Manuel Gay
FIXME this should be done only for JSP or HTML responses

Constructor Summary
CharsetControllerHandler()
           
 
Method Summary
 boolean beforeFilter(ServletRequest request, ServletResponse response, FilterConfig conf, ServletObjects httpServletObjects)
          Performs an operation before the doFilterChain() method is called
 
Methods inherited from class org.makumba.commons.ControllerHandler
afterBeforeFilter, afterFilter, finalize, onError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharsetControllerHandler

public CharsetControllerHandler()
Method Detail

beforeFilter

public boolean beforeFilter(ServletRequest request,
                            ServletResponse response,
                            FilterConfig conf,
                            ServletObjects httpServletObjects)
                     throws Exception
Description copied from class: ControllerHandler
Performs an operation before the doFilterChain() method is called

Overrides:
beforeFilter in class ControllerHandler
Returns:
true if the operation worked out successfully, false otherwise
Throws:
Exception