org.apache.catalina.valves
Class RequestDumperValve
- Contained, MBeanRegistration, Valve
public class RequestDumperValve
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.
Version:
- Craig R. McClanahan
String | getInfo() - Return descriptive information about this Valve implementation.
|
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).
|
String | toString() - Return a String rendering of this object.
|
createObjectName , getContainer , getContainerName , getController , getDebug , getDomain , getInfo , getObjectName , getParentName , invoke , postDeregister , postRegister , preDeregister , preRegister , setContainer , setController , setDebug , setObjectName |
sm
protected static StringManager sm
The StringManager for this package.
getInfo
public String getInfo()
Return descriptive information about this Valve implementation.
- getInfo in interface Valve
- getInfo in interface ValveBase
invoke
public void invoke(Request request,
Response response,
ValveContext context)
throws IOException,
ServletException
Log the interesting request parameters, invoke the next Valve in the
sequence, and log the interesting response parameters.
- invoke in interface Valve
- invoke in interface ValveBase
request
- The servlet request to be processedresponse
- The servlet response to be createdcontext
- The valve context used to invoke the next valve
in the current processing pipeline
log
protected void log(String message)
Log a message on the Logger associated with our Container (if any).
message
- Message to be logged
log
protected void log(String message,
Throwable throwable)
Log a message on the Logger associated with our Container (if any).
message
- Message to be loggedthrowable
- Associated exception
toString
public String toString()
Return a String rendering of this object.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.