Package com.atlassian.bamboo.filter
Class BambooEncodingFilter
- java.lang.Object
-
- com.atlassian.core.filters.AbstractHttpFilter
-
- com.atlassian.core.filters.encoding.AbstractEncodingFilter
-
- com.atlassian.bamboo.filter.BambooEncodingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class BambooEncodingFilter extends com.atlassian.core.filters.encoding.AbstractEncodingFilter
Sets encoding, content type, and wraps response withFixedHtmlEncodingResponseWrapper
Applied only to plugins servlet to avoid problems with artifacts and static resources. See alsocom.atlassian.jira.web.filters.JiraStaticResourceAwareEncodingFilter
-
-
Constructor Summary
Constructors Constructor Description BambooEncodingFilter()
BambooEncodingFilter(String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getContentType()
protected String
getEncoding()
void
init(javax.servlet.FilterConfig filterConfig)
-
-
-
Constructor Detail
-
BambooEncodingFilter
public BambooEncodingFilter()
-
BambooEncodingFilter
public BambooEncodingFilter(String encoding)
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classcom.atlassian.core.filters.AbstractHttpFilter
- Throws:
javax.servlet.ServletException
-
getContentType
protected String getContentType()
- Specified by:
getContentType
in classcom.atlassian.core.filters.encoding.AbstractEncodingFilter
-
getEncoding
protected String getEncoding()
- Specified by:
getEncoding
in classcom.atlassian.core.filters.encoding.AbstractEncodingFilter
-
-