Class PentahoAwareCharacterEncodingFilter
- java.lang.Object
-
- org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter
-
- org.pentaho.platform.web.http.filters.PentahoAwareCharacterEncodingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class PentahoAwareCharacterEncodingFilter extends SetCharacterEncodingFilter
Looks at thecontext-param
namedencoding
inweb.xml
for its encoding selection. If not found, falls back to method used by superclass. Finally, defaults toUTF-8
.- Author:
- mlowery
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CHAR_ENCODING
static String
INIT_PARAM_ENCODING
-
Fields inherited from class org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter
encoding, filterConfig, ignore
-
-
Constructor Summary
Constructors Constructor Description PentahoAwareCharacterEncodingFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
selectEncoding(javax.servlet.ServletRequest request)
Select an appropriate character encoding to be used, based on the characteristics of the current request and/or filter initialization parameters.-
Methods inherited from class org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter
destroy, doFilter, init
-
-
-
-
Field Detail
-
INIT_PARAM_ENCODING
public static final String INIT_PARAM_ENCODING
- See Also:
- Constant Field Values
-
DEFAULT_CHAR_ENCODING
public static final String DEFAULT_CHAR_ENCODING
- See Also:
- Constant Field Values
-
-
Method Detail
-
selectEncoding
protected String selectEncoding(javax.servlet.ServletRequest request)
Description copied from class:SetCharacterEncodingFilter
Select an appropriate character encoding to be used, based on the characteristics of the current request and/or filter initialization parameters. If no character encoding should be set, returnnull
.The default implementation unconditionally returns the value configured by the encoding initialization parameter for this filter.
- Overrides:
selectEncoding
in classSetCharacterEncodingFilter
- Parameters:
request
- The servlet request we are processing
-
-