Package io.dropwizard.servlets
Class ThreadNameFilter
java.lang.Object
io.dropwizard.servlets.ThreadNameFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
A servlet filter which adds the request method and URI to the thread name processing the request
for the duration of the request.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ThreadNameFilter
public ThreadNameFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-