| java.lang.Object org.apache.catalina.valves.ValveBase org.apache.catalina.valves.ErrorReportValve
ErrorReportValve | public class ErrorReportValve extends ValveBase (Code) | | 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.
author: Remy Maucherat author: Craig R. McClanahan author: Nicola Ken Barozzi Aisa author: Stefano Mazzocchi author: Yoav Shapira version: $Revision: 1.17.2.1 $ $Date: 2004/08/21 15:49:55 $ |
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) Invoke the next Valve in the sequence. | 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). | protected void | report(Request request, Response response, Throwable throwable) Prints out an error report. | 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) | | Invoke the next Valve in the sequence. When the invoke returns, check
the response state, and output an error report is necessary.
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 |
report | protected void report(Request request, Response response, Throwable throwable) throws IOException(Code) | | Prints out an error report.
Parameters: request - The request being processed Parameters: response - The response being generated Parameters: throwable - The exception that occurred (which possibly wrapsa root cause exception |
toString | public String toString()(Code) | | Return a String rendering of this object.
|
|
|