com.basecmp.core.util
Class EncodingFilter

java.lang.Object
  extended bycom.basecmp.core.util.EncodingFilter

public class EncodingFilter
extends java.lang.Object

Filter to ensure request-character-encoding. Use config-param 'Encoding' to define the request-encoding. Default is 'UTF-8'! Use config-param 'ExcludePathPattern' to provide a regular expression if you want to disable this filter on certain requestspaths. created on 16.01.2007

Author:
Wolfgang Schröder

Field Summary
static java.lang.String CONFIG_PARAM_ENCODING
           
static java.lang.String CONFIG_PARAM_EXCLUDE_PATH_PATTERN
           
static java.lang.String DEFAULT_ENCODING
           
 
Constructor Summary
EncodingFilter()
           
 
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

CONFIG_PARAM_ENCODING

public static final java.lang.String CONFIG_PARAM_ENCODING
See Also:
Constant Field Values

CONFIG_PARAM_EXCLUDE_PATH_PATTERN

public static final java.lang.String CONFIG_PARAM_EXCLUDE_PATH_PATTERN
See Also:
Constant Field Values

DEFAULT_ENCODING

public static final java.lang.String DEFAULT_ENCODING
See Also:
Constant Field Values
Constructor Detail

EncodingFilter

public EncodingFilter()
Method Detail

destroy

public void destroy()

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws java.io.IOException,
                     ServletException
Throws:
java.io.IOException
ServletException

init

public void init(FilterConfig config)
          throws ServletException
Throws:
ServletException


Copyright © 2004 by basecmp® - Professional Web Solutions