Class DropIfNotSetupFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    public class DropIfNotSetupFilter
    extends com.atlassian.core.filters.AbstractHttpFilter
    USE WITH CAUTION! This filter will drop any request that comes in when Confluence is not finished setting up. To prevent this from dropping valid requests ensure that the filter url mapping maps to exactly the request you want to drop.
    • Constructor Detail

      • DropIfNotSetupFilter

        public DropIfNotSetupFilter()
    • 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
      • doFilter

        protected 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
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
        Overrides:
        destroy in class com.atlassian.core.filters.AbstractHttpFilter