public class RequestDumperFilter extends GenericFilter
Implementation of a Filter that logs interesting contents from the specified Request (before processing) and the corresponding Response (after processing). It is especially useful in debugging problems related to headers and cookies.
When using this Filter, it is strongly recommended that the
org.apache.catalina.filter.RequestDumperFilter
logger is
directed to a dedicated file and that the
org.apache.juli.VerbatimFormatter
is used.
Constructor and Description |
---|
RequestDumperFilter() |
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
Log the interesting request parameters, invoke the next Filter in the
sequence, and log the interesting response parameters.
|
getFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init, init
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
request
- The servlet request to be processedresponse
- The servlet response to be createdchain
- The filter chain being processedjava.io.IOException
- if an input/output error occursServletException
- if a servlet error occursCopyright © 2000-1970 Apache Software Foundation. All Rights Reserved.