| org.mortbay.jetty.handler.AbstractHandler org.mortbay.jetty.handler.ErrorHandler
All known Subclasses: org.mortbay.jetty.servlet.ErrorPageErrorHandler,
ErrorHandler | public class ErrorHandler extends AbstractHandler (Code) | | Handler for Error pages
A handler that is registered at the org.mortbay.http.ErrorHandler
context attributed and called by the HttpResponse.sendError method to write a
error page.
author: Greg Wilkins (gregw) |
Method Summary | |
public void | handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) | protected void | handleErrorPage(HttpServletRequest request, Writer writer, int code, String message) | public boolean | isShowStacks() | public void | setShowStacks(boolean showStacks) | protected void | writeErrorPage(HttpServletRequest request, Writer writer, int code, String message, boolean showStacks) | protected void | writeErrorPageBody(HttpServletRequest request, Writer writer, int code, String message, boolean showStacks) | protected void | writeErrorPageHead(HttpServletRequest request, Writer writer, int code, String message) | protected void | writeErrorPageMessage(HttpServletRequest request, Writer writer, int code, String message, String uri) | protected void | writeErrorPageStacks(HttpServletRequest request, Writer writer) |
_showStacks | boolean _showStacks(Code) | | |
isShowStacks | public boolean isShowStacks()(Code) | | True if stack traces are shown in the error pages |
setShowStacks | public void setShowStacks(boolean showStacks)(Code) | | Parameters: showStacks - True if stack traces are shown in the error pages |
|
|