Lines 24-29
Link Here
|
24 |
import javax.servlet.ServletException; |
24 |
import javax.servlet.ServletException; |
25 |
import javax.servlet.ServletRequest; |
25 |
import javax.servlet.ServletRequest; |
26 |
import javax.servlet.ServletResponse; |
26 |
import javax.servlet.ServletResponse; |
|
|
27 |
import javax.servlet.Filter; |
27 |
|
28 |
|
28 |
import org.apache.commons.logging.Log; |
29 |
import org.apache.commons.logging.Log; |
29 |
import org.apache.commons.logging.LogFactory; |
30 |
import org.apache.commons.logging.LogFactory; |
Lines 55-61
Link Here
|
55 |
* and <code>User-Agent</code> headers, or a value stashed in the current |
56 |
* and <code>User-Agent</code> headers, or a value stashed in the current |
56 |
* user's session.</p> |
57 |
* user's session.</p> |
57 |
*/ |
58 |
*/ |
58 |
public class SetCharacterEncodingFilter { |
59 |
public class SetCharacterEncodingFilter implements Filter { |
59 |
|
60 |
|
60 |
private static final Log log = |
61 |
private static final Log log = |
61 |
LogFactory.getLog(SetCharacterEncodingFilter.class); |
62 |
LogFactory.getLog(SetCharacterEncodingFilter.class); |
Lines 151-154
Link Here
|
151 |
protected String selectEncoding(ServletRequest request) { |
152 |
protected String selectEncoding(ServletRequest request) { |
152 |
return this.encoding; |
153 |
return this.encoding; |
153 |
} |
154 |
} |
|
|
155 |
|
156 |
public void destroy() { |
157 |
// NOOP |
158 |
|
159 |
} |
154 |
} |
160 |
} |