org.apache.catalina.valves
クラス ErrorReportValve

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

public class ErrorReportValve
extends ValveBase

Implementation of a Valve that outputs HTML error pages.

This Valve should be attached at the Host level, although it will work if attached to a Context.

HTML code from the Cocoon 2 project.

バージョン:
$Revision: 1.5.2.5 $ $Date: 2002/05/10 03:43:52 $
作成者:
Remy Maucherat, Craig R. McClanahan, Nicola Ken Barozzi Aisa, Stefano Mazzocchi

フィールドの概要
protected static StringManager sm
          The StringManager for this package.
 
クラス org.apache.catalina.valves.ValveBase から継承したフィールド
container, info
 
コンストラクタの概要
ErrorReportValve()
           
 
メソッドの概要
 java.lang.String getInfo()
          Return descriptive information about this Valve implementation.
 void invoke(Request request, Response response, ValveContext context)
          Invoke the next Valve in the sequence.
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).
protected  void report(Request request, Response response, java.lang.Throwable throwable)
          Prints out an error report.
 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.
コンストラクタの詳細

ErrorReportValve

public ErrorReportValve()
メソッドの詳細

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
Invoke the next Valve in the sequence. When the invoke returns, check the response state, and output an error report is necessary.
オーバーライド:
クラス 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

report

protected void report(Request request,
                      Response response,
                      java.lang.Throwable throwable)
               throws java.io.IOException
Prints out an error report.
パラメータ:
request - The request being processed
response - The response being generated
exception - The exception that occurred (which possibly wraps a root cause exception

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.