2.17.2: 2011-06-17

net.sf.basedb.clients.web.servlet
Class CharacterEncodingFilter

java.lang.Object
  extended by 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) $

Field Summary
private  String characterEncoding
           
 
Constructor Summary
CharacterEncodingFilter()
           
 
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
 

Field Detail

characterEncoding

private String characterEncoding
Constructor Detail

CharacterEncodingFilter

public CharacterEncodingFilter()
Method Detail

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

2.17.2: 2011-06-17