|
Apache Tomcat 6.0.35 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.valves.ValveBase
org.apache.catalina.valves.ErrorReportValve
public class ErrorReportValve
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 class org.apache.catalina.valves.ValveBase |
|---|
container, containerLog, controller, domain, mserver, next, oname |
| Constructor Summary | |
|---|---|
ErrorReportValve()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation. |
protected java.lang.String |
getPartialServletStackTrace(java.lang.Throwable t)
Print out a partial servlet stack trace (truncating at the last occurrence of javax.servlet.). |
void |
invoke(Request request,
Response response)
Invoke the next Valve in the sequence. |
protected void |
report(Request request,
Response response,
java.lang.Throwable throwable)
Prints out an error report. |
| Methods inherited from class org.apache.catalina.valves.ValveBase |
|---|
backgroundProcess, createObjectName, event, getContainer, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setContainer, setController, setNext, setObjectName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static StringManager sm
| Constructor Detail |
|---|
public ErrorReportValve()
| Method Detail |
|---|
public java.lang.String getInfo()
getInfo in interface ValvegetInfo in class ValveBase
public void invoke(Request request,
Response response)
throws java.io.IOException,
javax.servlet.ServletException
invoke in interface Valveinvoke in class ValveBaserequest - The servlet request to be processedresponse - The servlet response to be created
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs
protected void report(Request request,
Response response,
java.lang.Throwable throwable)
request - The request being processedresponse - The response being generatedthrowable - The exception that occurred (which possibly wraps
a root cause exceptionprotected java.lang.String getPartialServletStackTrace(java.lang.Throwable t)
|
Apache Tomcat 6.0.35 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||