|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.ErrorHandler
An application error handler/logger that will notify the user with both a simple HTML page and JavaScript alert.
Field Summary | |
private static int |
errorIdCount
Error id counter |
private static java.lang.String |
HTML_1
The first segment of the "template" used to display the HTML error page. |
private static java.lang.String |
HTML_2
The second segment of the "template" used to display the HTML error page. |
private static java.lang.String |
HTML_3
The third segment of the "template" used to display the HTML error page. |
private static java.lang.String |
HTML_4
The fourth segment of the "template" used to display the HTML error page. |
private static java.lang.String |
POST_ERROR_TEXT
Text that follows the error message |
private static java.lang.String |
PRE_ERROR_TEXT
Text that preceeds the error message |
Constructor Summary | |
private |
ErrorHandler()
Non-instantiable class. |
Method Summary | |
(package private) static void |
process(InstancePeer instancePeer,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.HttpServlet servlet,
java.lang.Exception ex)
Renders an error page and shuts down the application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String PRE_ERROR_TEXT
private static final java.lang.String POST_ERROR_TEXT
private static int errorIdCount
private static final java.lang.String HTML_1
private static final java.lang.String HTML_2
private static final java.lang.String HTML_3
private static final java.lang.String HTML_4
Constructor Detail |
private ErrorHandler()
Method Detail |
static void process(InstancePeer instancePeer, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServlet servlet, java.lang.Exception ex) throws javax.servlet.ServletException, java.io.IOException
request
- The HTTP request object provided by the servlet
container.response
- The HTTP response object provided by the servlet
container.servlet
- A reference to the application's underlying
HttpServlet
. The servlet is required to
access the logging facility.ex
- The fatal exception.
javax.servlet.ServletException
java.io.IOException
|
NextApp Echo App Container 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |