org.apache.catalina.valves

Class RequestDumperValve

public class RequestDumperValve extends ValveBase

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: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
protected static StringManagersm
The StringManager for this package.
Method Summary
StringgetInfo()
Return descriptive information about this Valve implementation.
voidinvoke(Request request, Response response)
Log the interesting request parameters, invoke the next Valve in the sequence, and log the interesting response parameters.
StringtoString()
Return a String rendering of this object.

Field Detail

sm

protected static StringManager sm
The StringManager for this package.

Method Detail

getInfo

public String getInfo()
Return descriptive information about this Valve implementation.

invoke

public void invoke(Request request, Response response)
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 response The servlet response to be created

Throws: IOException if an input/output error occurs ServletException if a servlet error occurs

toString

public String toString()
Return a String rendering of this object.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.