public class AddDefaultCharsetFilter extends FilterBase
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AddDefaultCharsetFilter.ResponseWrapper |
Wrapper that adds a character set for text media types if no character
set is specified.
|
sm| Constructor | Description |
|---|---|
AddDefaultCharsetFilter() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
|
protected Log |
getLogger() |
|
void |
init(javax.servlet.FilterConfig filterConfig) |
Iterates over the configuration parameters and either logs a warning,
or throws an exception for any parameter that does not have a matching
setter in this filter.
|
void |
setEncoding(java.lang.String encoding) |
isConfigProblemFatalpublic void setEncoding(java.lang.String encoding)
protected Log getLogger()
getLogger in class FilterBasepublic void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
FilterBaseinit in class FilterBasefilterConfig - The configuration information associated with the
filter instance being initialisedjavax.servlet.ServletException - if FilterBase.isConfigProblemFatal() returns
true and a configured parameter does not
have a matching setterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.