|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.valves.ValveBase | +--org.apache.catalina.valves.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, info |
Constructor Summary | |
ErrorReportValve()
|
Method Summary | |
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. |
Methods inherited from class org.apache.catalina.valves.ValveBase |
getContainer, setContainer |
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 Valve
getInfo
in class ValveBase
public void invoke(Request request, Response response, ValveContext context) throws java.io.IOException, javax.servlet.ServletException
invoke
in interface Valve
invoke
in class ValveBase
request
- The servlet request to be processedresponse
- The servlet response to be createdcontext
- 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 occurspublic java.lang.String toString()
toString
in class java.lang.Object
protected void report(Request request, Response response, java.lang.Throwable throwable) throws java.io.IOException
request
- The request being processedresponse
- The response being generated
java.io.IOException
protected void log(java.lang.String message)
message
- Message to be loggedprotected void log(java.lang.String message, java.lang.Throwable throwable)
message
- Message to be loggedthrowable
- Associated exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |