Package com.atlassian.jira.web.filters
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) Note:ThreadLocalQueryProfiler.start()andThreadLocalQueryProfiler.end()is also handled byJiraThreadLocalUtils, which means that this is also triggered by another filterRequestCleanupStep.voidinit(javax.servlet.FilterConfig filterConfig) Methods inherited from class com.atlassian.util.profiling.filters.RequestProfilingFilter
destroy
-
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()andThreadLocalQueryProfiler.end()is also handled byJiraThreadLocalUtils, which means that this is also triggered by another filterRequestCleanupStep. But! theRequestCleanupStepis later in the filter chain andThreadLocalQueryProfilerhandles nested context, so this filter will actually start and end theThreadLocalQueryProfilercontext (in a request).- Specified by:
doFilterin interfacejavax.servlet.Filter- Overrides:
doFilterin classcom.atlassian.util.profiling.filters.RequestProfilingFilter- Throws:
IOExceptionjavax.servlet.ServletException
-
init
public void init(javax.servlet.FilterConfig filterConfig) - Specified by:
initin interfacejavax.servlet.Filter- Overrides:
initin classcom.atlassian.util.profiling.filters.RequestProfilingFilter
-