Package org.apache.catalina.filters
Class RequestDumperFilter
- java.lang.Object
- 
- javax.servlet.GenericFilter
- 
- org.apache.catalina.filters.RequestDumperFilter
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Filter,- FilterConfig
 
 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.RequestDumperFilterlogger is directed to a dedicated file and that theorg.apache.juli.VerbatimFormatteris used.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description RequestDumperFilter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain)Log the interesting request parameters, invoke the next Filter in the sequence, and log the interesting response parameters.- 
Methods inherited from class javax.servlet.GenericFiltergetFilterConfig, getFilterName, getInitParameter, getInitParameterNames, getServletContext, init, init
 
- 
 
- 
- 
- 
Method Detail- 
doFilterpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException Log the interesting request parameters, invoke the next Filter in the sequence, and log the interesting response parameters.- Parameters:
- request- The servlet request to be processed
- response- The servlet response to be created
- chain- The filter chain being processed
- Throws:
- java.io.IOException- if an input/output error occurs
- ServletException- if a servlet error occurs
 
 
- 
 
-