|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.cms.util.SetCharacterEncodingFilter
public class SetCharacterEncodingFilter
| Field Summary | |
|---|---|
protected java.lang.String |
encoding
The default character encoding to set for requests that pass through this filter. |
protected javax.servlet.FilterConfig |
filterConfig
The filter configuration object we are associated with. |
protected boolean |
ignore
Should a character encoding specified by the client be ignored? |
| Constructor Summary | |
|---|---|
SetCharacterEncodingFilter()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Take this filter out of service. |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Select and set (if specified) the character encoding to be used to interpret request parameters for this request. |
void |
init(javax.servlet.FilterConfig filterConfig)
Place this filter into service. |
protected java.lang.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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String encoding
protected javax.servlet.FilterConfig filterConfig
protected boolean ignore
| Constructor Detail |
|---|
public SetCharacterEncodingFilter()
| Method Detail |
|---|
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.Filterrequest - The servlet request we are processingresult - The servlet response we are creatingchain - The filter chain we are processing
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.FilterfilterConfig - The filter configuration object
javax.servlet.ServletExceptionprotected java.lang.String selectEncoding(javax.servlet.ServletRequest request)
null.
The default implementation unconditionally returns the value configured by the encoding initialization parameter for this filter.
request - The servlet request we are processing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||