public class ServletErrorPageManager extends Object
| 构造器和说明 |
|---|
ServletErrorPageManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(ServletErrorPage errorPage) |
ServletErrorPage |
find(int statusCode) |
ServletErrorPage |
find(Throwable exceptionType) |
static String |
getErrorPagePath(javax.servlet.http.HttpServletRequest request,
ServletErrorPage errorPage) |
void |
handleErrorPage(ServletErrorPage errorPage,
Throwable throwable,
ServletRequestDispatcher requestDispatcher,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle error page
|
boolean |
isShowErrorMessage() |
static void |
printThrowable(Throwable throwable,
ServletRequestDispatcher requestDispatcher) |
void |
remove(ServletErrorPage errorPage) |
void |
setShowErrorMessage(boolean showErrorMessage) |
public static void printThrowable(Throwable throwable, ServletRequestDispatcher requestDispatcher)
public static String getErrorPagePath(javax.servlet.http.HttpServletRequest request, ServletErrorPage errorPage)
public void add(ServletErrorPage errorPage)
public void remove(ServletErrorPage errorPage)
public ServletErrorPage find(int statusCode)
public ServletErrorPage find(Throwable exceptionType)
public boolean isShowErrorMessage()
public void setShowErrorMessage(boolean showErrorMessage)
public void handleErrorPage(ServletErrorPage errorPage, Throwable throwable, ServletRequestDispatcher requestDispatcher, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
errorPage - errorPagethrowable - throwablerequestDispatcher - requestDispatcherhttpServletRequest - httpServletRequesthttpServletResponse - httpServletResponseCopyright © 2023. All rights reserved.