org.apache.catalina.valves
クラス RequestDumperValve

java.lang.Object
  |
  +--org.apache.catalina.valves.ValveBase
        |
        +--org.apache.catalina.valves.RequestDumperValve
すべての実装インタフェース:
Contained, Valve

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.

バージョン:
$Revision: 1.4.2.1 $ $Date: 2002/02/19 22:10:47 $
作成者:
Craig R. McClanahan

フィールドの概要
protected static StringManager sm
          The StringManager for this package.
 
クラス org.apache.catalina.valves.ValveBase から継承したフィールド
container, info
 
コンストラクタの概要
RequestDumperValve()
           
 
メソッドの概要
 java.lang.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(java.lang.String message)
          Log a message on the Logger associated with our Container (if any).
protected  void log(java.lang.String message, java.lang.Throwable throwable)
          Log a message on the Logger associated with our Container (if any).
 java.lang.String toString()
          Return a String rendering of this object.
 
クラス org.apache.catalina.valves.ValveBase から継承したメソッド
getContainer, setContainer
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

sm

protected static StringManager sm
The StringManager for this package.
コンストラクタの詳細

RequestDumperValve

public RequestDumperValve()
メソッドの詳細

getInfo

public java.lang.String getInfo()
Return descriptive information about this Valve implementation.
オーバーライド:
クラス ValveBase 内の getInfo

invoke

public void invoke(Request request,
                   Response response,
                   ValveContext context)
            throws java.io.IOException,
                   javax.servlet.ServletException
Log the interesting request parameters, invoke the next Valve in the sequence, and log the interesting response parameters.
オーバーライド:
クラス ValveBase 内の invoke
パラメータ:
request - The servlet request to be processed
response - The servlet response to be created
context - The valve context used to invoke the next valve in the current processing pipeline
例外:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

toString

public java.lang.String toString()
Return a String rendering of this object.
オーバーライド:
クラス java.lang.Object 内の toString

log

protected void log(java.lang.String message)
Log a message on the Logger associated with our Container (if any).
パラメータ:
message - Message to be logged

log

protected void log(java.lang.String message,
                   java.lang.Throwable throwable)
Log a message on the Logger associated with our Container (if any).
パラメータ:
message - Message to be logged
throwable - Associated exception


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.