Class StartupStatusDisplayFilter

  • All Implemented Interfaces:
    javax.servlet.Filter

    @WebFilter(filterName="Startup Status Display Filter",
               urlPatterns="/*")
    public class StartupStatusDisplayFilter
    extends Object
    implements javax.servlet.Filter
    No matter what URL is requested, check to see whether the StartupStatus contains errors or warnings. If it does, hijack the request to show the StartupStatus display page. If the status only contains warnings, this only happens once. Subsequent requests will display normally. However, if the status contains a fatal error, this filter will hijack every request, and will not let you proceed.
    • Constructor Detail

      • StartupStatusDisplayFilter

        public StartupStatusDisplayFilter()
    • Method Detail

      • init

        public void init​(javax.servlet.FilterConfig filterConfig)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest req,
                             javax.servlet.ServletResponse resp,
                             javax.servlet.FilterChain chain)
                      throws IOException,
                             javax.servlet.ServletException
        Specified by:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException