org.yawlfoundation.yawl.util
Class CharsetFilter

java.lang.Object
  extended by org.yawlfoundation.yawl.util.CharsetFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CharsetFilter
extends Object
implements javax.servlet.Filter

Enforces UTF-8 encoding for all servlet requests and responses. Sourced from stackoverflow.com based on code on the Tomcat wiki Modified by: Michael Adams Creation Date: 12/12/2008


Constructor Summary
CharsetFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain next)
           
 void init(javax.servlet.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(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

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

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2004-2012 The YAWL Foundation.