public class SetCharacterEncodingFilter
extends java.lang.Object
implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ajax_post_content_type_default |
| 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) |
java.lang.String |
getEncoding() |
void |
init(javax.servlet.FilterConfig filterConfig) |
boolean |
isEncoding()
get是否做encoding
|
boolean |
isEncoding(javax.servlet.http.HttpServletRequest request) |
boolean |
isReplacespecialWord()
get 特殊字是否要做置換
|
void |
setEncoding(java.lang.String in) |
void |
setIsencoding(boolean in)
set 是否 incodeing
|
void |
setIsReplacespecialWord(boolean in)
set 設定特殊字是否要做置換, 不做置換.則強迫一定要做檢查
|
public static java.lang.String ajax_post_content_type_default
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void setEncoding(java.lang.String in)
public java.lang.String getEncoding()
public void setIsReplacespecialWord(boolean in)
in - public boolean isReplacespecialWord()
public void setIsencoding(boolean in)
in - public boolean isEncoding()
public boolean isEncoding(javax.servlet.http.HttpServletRequest request)
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.Filterjava.io.IOExceptionjavax.servlet.ServletException