Class AbstractStaticResourceAwareFilter

  • All Implemented Interfaces:
    javax.servlet.Filter
    Direct Known Subclasses:
    ConfluenceEncodingFilter, MauEventFilter

    public abstract class AbstractStaticResourceAwareFilter
    extends com.atlassian.core.filters.AbstractHttpFilter
    CONFSERVER-58180 due the following change in DefaultServlet http://svn.apache.org/viewvc?view=revision&revision=1845799 our static resources are no longer served with the correct Content-Type header. in fact ConfluenceEncodingFilter happens to set an initial Content-Type header long before the DefaultServlet is ready to serve the resource
    Since:
    6.13.5
    • Field Detail

      • staticSuffixes

        public static final Set<String> staticSuffixes
    • Constructor Detail

      • AbstractStaticResourceAwareFilter

        public AbstractStaticResourceAwareFilter()
    • Method Detail

      • doFilter

        protected final void doFilter​(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      javax.servlet.FilterChain filterChain)
                               throws IOException,
                                      javax.servlet.ServletException
        Specified by:
        doFilter in class com.atlassian.core.filters.AbstractHttpFilter
        Throws:
        IOException
        javax.servlet.ServletException
      • doFilterInternal

        protected abstract void doFilterInternal​(javax.servlet.http.HttpServletRequest request,
                                                 javax.servlet.http.HttpServletResponse response,
                                                 javax.servlet.FilterChain filterChain)
                                          throws IOException,
                                                 javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException