net.sf.basedb.clients.web.servlet
Class CharacterEncodingFilter
java.lang.Object
net.sf.basedb.clients.web.servlet.CharacterEncodingFilter
- All Implemented Interfaces:
- Filter
public final class CharacterEncodingFilter
- extends Object
- implements Filter
This is a filter that sets the character encoding for both the
request and the response. The default encoding is UTF-8.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2010-08-13 10:50:27 +0200 (Fri, 13 Aug 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
characterEncoding
private String characterEncoding
CharacterEncodingFilter
public CharacterEncodingFilter()
init
public void init(FilterConfig config)
- Specified by:
init
in interface Filter
destroy
public void destroy()
- Specified by:
destroy
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