public class SetCharacterEncodingFilter
extends java.lang.Object
implements javax.servlet.Filter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding |
protected javax.servlet.FilterConfig |
filterConfig |
protected boolean |
ignore |
Constructor and Description |
---|
SetCharacterEncodingFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected java.lang.String |
selectEncoding(javax.servlet.ServletRequest request) |
protected java.lang.String encoding
protected javax.servlet.FilterConfig filterConfig
protected boolean ignore
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
protected java.lang.String selectEncoding(javax.servlet.ServletRequest request)