|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scrashmeow.ojb.console.ErrorPageUtils
A set of utility classes that a JSP error page might find useful. These methods support providing error and state information in a JSP.
Constructor Summary | |
ErrorPageUtils()
|
Method Summary | |
static java.lang.String |
makeBriefSummary(HttpServletRequest req,
java.lang.Throwable e)
Return a string with the thrown exception's toString() value |
static java.lang.String |
makeErrorInfoReport(HttpServletRequest req,
java.lang.Throwable e)
Return a string with the state information about the request. |
static java.lang.String |
makeFullErrorReport(HttpServletRequest req,
java.lang.Throwable e)
Return a string with the state and error information about the request. |
static java.lang.String |
makeStackTraceReport(HttpServletRequest req,
java.lang.Throwable e)
Return a string the stack trace of the thrown exception. |
static void |
reportCookies(java.lang.StringBuffer buffer,
HttpServletRequest req)
Return a string with the information about the current request cookies The string is formatted using newlines. |
static void |
reportException(java.lang.StringBuffer buffer,
java.lang.Throwable e)
Return a string with the exception information, stack trace etc The string is formatted using newlines. |
static void |
reportHeaders(java.lang.StringBuffer buffer,
HttpServletRequest req)
Return a string with the information about the current request headers The string is formatted using newlines. |
static void |
reportParameters(java.lang.StringBuffer buffer,
HttpServletRequest req)
Return a string with the information about the current request parameters The string is formatted using newlines. |
static void |
reportRequest(java.lang.StringBuffer buffer,
HttpServletRequest req)
Return a string with the information about the current request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ErrorPageUtils()
Method Detail |
public static java.lang.String makeBriefSummary(HttpServletRequest req, java.lang.Throwable e)
req
- the current requeste
- the exception that triggered the error page
public static java.lang.String makeStackTraceReport(HttpServletRequest req, java.lang.Throwable e)
req
- the current requeste
- the exception that triggered the error page
public static java.lang.String makeErrorInfoReport(HttpServletRequest req, java.lang.Throwable e)
req
- the current requeste
- the exception that triggered the error page
public static java.lang.String makeFullErrorReport(HttpServletRequest req, java.lang.Throwable e)
req
- the current requeste
- the exception that triggered the error page
public static void reportException(java.lang.StringBuffer buffer, java.lang.Throwable e)
buffer
- the string buffer to write the informatione
- the exception that triggered the error pagepublic static void reportRequest(java.lang.StringBuffer buffer, HttpServletRequest req)
buffer
- the string buffer to write the informationreq
- the current requestpublic static void reportParameters(java.lang.StringBuffer buffer, HttpServletRequest req)
buffer
- the string buffer to write the informationreq
- the current requestpublic static void reportHeaders(java.lang.StringBuffer buffer, HttpServletRequest req)
buffer
- the string buffer to write the informationreq
- the current requestpublic static void reportCookies(java.lang.StringBuffer buffer, HttpServletRequest req)
buffer
- the string buffer to write the informationreq
- the current request
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |