| 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: 543307 $ $Date: 2007-06-01 01:08:24 +0200 (ven., 01 juin 2007) $ |
Field Summary | |
protected static StringManager | sm The StringManager for this package. |
getInfo | public String getInfo()(Code) | | Return descriptive information about this Valve implementation.
|
getPartialServletStackTrace | protected String getPartialServletStackTrace(Throwable t)(Code) | | Print out a partial servlet stack trace (truncating at the last
occurrence of javax.servlet.).
|
invoke | public void invoke(Request request, Response response) 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 exception: IOException - if an input/output error occurs exception: ServletException - if a servlet error occurs |
report | protected void report(Request request, Response response, Throwable throwable)(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 |
|
|