Class BambooEncodingFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class BambooEncodingFilter
    extends com.atlassian.core.filters.encoding.AbstractEncodingFilter
    Sets encoding, content type, and wraps response with FixedHtmlEncodingResponseWrapper Applied only to plugins servlet to avoid problems with artifacts and static resources. See also com.atlassian.jira.web.filters.JiraStaticResourceAwareEncodingFilter
    • 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 interface javax.servlet.Filter
        Overrides:
        init in class com.atlassian.core.filters.AbstractHttpFilter
        Throws:
        javax.servlet.ServletException
      • getContentType

        protected String getContentType()
        Specified by:
        getContentType in class com.atlassian.core.filters.encoding.AbstractEncodingFilter
      • getEncoding

        protected String getEncoding()
        Specified by:
        getEncoding in class com.atlassian.core.filters.encoding.AbstractEncodingFilter