Class MetricFilter

  • All Implemented Interfaces:
    jakarta.servlet.Filter

    @Provider
    @WebFilter(urlPatterns="*")
    public class MetricFilter
    extends Object
    implements jakarta.servlet.Filter
    Author:
    Mougang T.Gasmyr
    • Constructor Detail

      • MetricFilter

        public MetricFilter()
    • Method Detail

      • init

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

        public void doFilter​(jakarta.servlet.ServletRequest servletRequest,
                             jakarta.servlet.ServletResponse servletResponse,
                             jakarta.servlet.FilterChain chain)
                      throws IOException,
                             jakarta.servlet.ServletException
        Specified by:
        doFilter in interface jakarta.servlet.Filter
        Throws:
        IOException
        jakarta.servlet.ServletException
      • destroy

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