Class AMSetupFilter

  • All Implemented Interfaces:
    jakarta.servlet.Filter

    public final class AMSetupFilter
    extends Object
    implements jakarta.servlet.Filter
    This filter brings the administrator to a configuration page where the product can be configured if the product is not yet configured.
    • Constructor Detail

      • AMSetupFilter

        public AMSetupFilter()
    • Method Detail

      • init

        public void init​(jakarta.servlet.FilterConfig config)
                  throws jakarta.servlet.ServletException
        Specified by:
        init in interface jakarta.servlet.Filter
        Throws:
        jakarta.servlet.ServletException
      • doFilter

        public void doFilter​(jakarta.servlet.ServletRequest req,
                             jakarta.servlet.ServletResponse resp,
                             jakarta.servlet.FilterChain filterChain)
                      throws IOException,
                             jakarta.servlet.ServletException
        Redirects requests to configuration page if the product is not yet configured.
        Specified by:
        doFilter in interface jakarta.servlet.Filter
        Parameters:
        req - The HTTP request.
        resp - The HTTP response.
        filterChain - The filter chain.
        Throws:
        IOException - If configuration file cannot be read.
        jakarta.servlet.ServletException - If there are errors in the servlet space.
      • destroy

        public void destroy()
        Specified by:
        destroy in interface jakarta.servlet.Filter