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:
init
in 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:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Filter
-