| java.lang.Object org.apache.catalina.valves.ValveBase org.apache.catalina.valves.RequestDumperValve
RequestDumperValve | public class RequestDumperValve extends ValveBase (Code) | | Implementation of a Valve 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.
This Valve may be attached to any Container, depending on the granularity
of the logging you wish to perform.
author: Craig R. McClanahan version: $Revision: 1.4 $ $Date: 2004/02/27 14:58:52 $ |
Field Summary | |
protected static StringManager | sm The StringManager for this package. |
Method Summary | |
public String | getInfo() Return descriptive information about this Valve implementation. | public void | invoke(Request request, Response response, ValveContext context) Log the interesting request parameters, invoke the next Valve in the
sequence, and log the interesting response parameters. | protected void | log(String message) Log a message on the Logger associated with our Container (if any). | protected void | log(String message, Throwable throwable) Log a message on the Logger associated with our Container (if any). | public String | toString() Return a String rendering of this object. |
getInfo | public String getInfo()(Code) | | Return descriptive information about this Valve implementation.
|
invoke | public void invoke(Request request, Response response, ValveContext context) throws IOException, ServletException(Code) | | Log the interesting request parameters, invoke the next Valve in the
sequence, and log the interesting response parameters.
Parameters: request - The servlet request to be processed Parameters: response - The servlet response to be created Parameters: context - The valve context used to invoke the next valvein the current processing pipeline exception: IOException - if an input/output error occurs exception: ServletException - if a servlet error occurs |
log | protected void log(String message)(Code) | | Log a message on the Logger associated with our Container (if any).
Parameters: message - Message to be logged |
log | protected void log(String message, Throwable throwable)(Code) | | Log a message on the Logger associated with our Container (if any).
Parameters: message - Message to be logged Parameters: throwable - Associated exception |
toString | public String toString()(Code) | | Return a String rendering of this object.
|
|
|