Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » valves » [javadoc | source]
public class: ErrorReportValve [javadoc | source]

All Implemented Interfaces:
    Valve, MBeanRegistration, Contained

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.

Field Summary
protected static  StringManager sm    The StringManager for this package. 
Fields inherited from org.apache.catalina.valves.ValveBase:
container,  containerLog,  info,  next,  sm,  domain,  oname,  mserver,  controller
Method from org.apache.catalina.valves.ErrorReportValve Summary:
getInfo,   getPartialServletStackTrace,   invoke,   report
Methods from org.apache.catalina.valves.ValveBase:
backgroundProcess,   createObjectName,   event,   getContainer,   getContainerName,   getController,   getDomain,   getInfo,   getNext,   getObjectName,   getParentName,   invoke,   postDeregister,   postRegister,   preDeregister,   preRegister,   setContainer,   setController,   setNext,   setObjectName,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.valves.ErrorReportValve Detail:
 public String getInfo() 
    Return descriptive information about this Valve implementation.
 protected String getPartialServletStackTrace(Throwable t) 
    Print out a partial servlet stack trace (truncating at the last occurrence of javax.servlet.).
 public  void invoke(Request request,
    Response response) throws IOException, ServletException 
    Invoke the next Valve in the sequence. When the invoke returns, check the response state, and output an error report is necessary.
 protected  void report(Request request,
    Response response,
    Throwable throwable) 
    Prints out an error report.