|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.filters.RequestDumperFilter
public class RequestDumperFilter
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.VerbatimFormmater
is used.
Constructor Summary | |
---|---|
RequestDumperFilter()
|
Method Summary | |
---|---|
void |
destroy()
Called by the web container to indicate to a filter that it is being taken out of service. |
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. |
void |
init(FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestDumperFilter()
Method Detail |
---|
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
request
- The servlet request to be processedresponse
- The servlet response to be createdchain
- The filter chain being processed
IOException
- if an input/output error occurs
ServletException
- if a servlet error occurspublic void init(FilterConfig filterConfig) throws ServletException
javax.servlet.Filter
init
in interface Filter
ServletException
public void destroy()
javax.servlet.Filter
destroy
in interface Filter
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |