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,
javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Handle error page
|
boolean |
isShowErrorMessage() |
void |
remove(ServletErrorPage errorPage) |
void |
setShowErrorMessage(boolean showErrorMessage) |
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, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
errorPage - errorPagethrowable - throwablehttpServletRequest - httpServletRequesthttpServletResponse - httpServletResponsepublic static String getErrorPagePath(javax.servlet.http.HttpServletRequest request, ServletErrorPage errorPage)
Copyright © 2021. All rights reserved.