1 package com.atlassian.core.filters;
2
3 import javax.servlet.ServletRequest;
4 import javax.servlet.ServletResponse;
5 import javax.servlet.ServletException;
6 import java.io.IOException;
7
8 public class StubEncodingFilter extends AbstractEncodingFilter
9 {
10 private String encoding = "UTF-8";
11 private String contentType = "text/plain";
12
13 protected String getEncoding()
14 {
15 return encoding;
16 }
17
18 protected String getContentType()
19 {
20 return contentType;
21 }
22
23 public void setEncoding(String encoding)
24 {
25 this.encoding = encoding;
26 }
27
28 public void setContentType(String contentType)
29 {
30 this.contentType = contentType;
31 }
32
33
34
35
36 public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse) throws IOException, ServletException
37 {
38 super.doFilter(servletRequest, servletResponse, NoOpFilterChain.getInstance());
39 }
40 }