Class JIRAProfilingFilter

java.lang.Object
com.atlassian.util.profiling.filters.RequestProfilingFilter
com.atlassian.jira.web.filters.JIRAProfilingFilter
All Implemented Interfaces:
javax.servlet.Filter

public class JIRAProfilingFilter extends com.atlassian.util.profiling.filters.RequestProfilingFilter
  • Constructor Details

    • JIRAProfilingFilter

      public JIRAProfilingFilter()
  • Method Details

    • doFilter

      public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
      Note: ThreadLocalQueryProfiler.start() and ThreadLocalQueryProfiler.end() is also handled by JiraThreadLocalUtils, which means that this is also triggered by another filter RequestCleanupStep. But! the RequestCleanupStep is later in the filter chain and ThreadLocalQueryProfiler handles nested context, so this filter will actually start and end the ThreadLocalQueryProfiler context (in a request).
      Specified by:
      doFilter in interface javax.servlet.Filter
      Overrides:
      doFilter in class com.atlassian.util.profiling.filters.RequestProfilingFilter
      Throws:
      IOException
      javax.servlet.ServletException
    • init

      public void init(javax.servlet.FilterConfig filterConfig)
      Specified by:
      init in interface javax.servlet.Filter
      Overrides:
      init in class com.atlassian.util.profiling.filters.RequestProfilingFilter