Package org.kohsuke.stapler
Class DiagnosticThreadNameFilter
java.lang.Object
org.kohsuke.stapler.DiagnosticThreadNameFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,CompatibleFilter
Filter that sets the thread name to reflect the current request being processed.- Author:
- Kohsuke Kawaguchi
-
Constructor Details
-
DiagnosticThreadNameFilter
public DiagnosticThreadNameFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse rsp, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-