public class ErrorPageErrorHandler extends ErrorHandler implements ErrorHandler.ErrorPageMapper
ErrorHandler.ErrorPageMapperAbstractHandler.ErrorDispatchHandlerAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL_ERROR_PAGE |
ERROR_CONTEXT, ERROR_PAGE| Constructor and Description |
|---|
ErrorPageErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorPage(Class<? extends Throwable> exception,
String uri)
Adds ErrorPage mapping for an exception class.
|
void |
addErrorPage(int from,
int to,
String uri)
Adds ErrorPage mapping for a status code range.
|
void |
addErrorPage(int code,
String uri)
Adds ErrorPage mapping for a status code.
|
void |
addErrorPage(String exceptionClassName,
String uri)
Adds ErrorPage mapping for an exception class.
|
String |
getErrorPage(HttpServletRequest request) |
Map<String,String> |
getErrorPages() |
void |
setErrorPages(Map<String,String> errorPages) |
badMessageError, doError, errorPageForMethod, getCacheControl, getErrorHandler, getShowMessageInTitle, handle, isShowServlet, isShowStacks, setCacheControl, setShowMessageInTitle, setShowServlet, setShowStacksdestroy, getServer, setServeraddBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, start, stop, stopdumpContainer, dumpIterable, dumpMapEntries, dumpObjects, dumpSelf, namedpublic static final String GLOBAL_ERROR_PAGE
public String getErrorPage(HttpServletRequest request)
getErrorPage in interface ErrorHandler.ErrorPageMapperpublic void setErrorPages(Map<String,String> errorPages)
errorPages - a map of Exception class names or error codes as a string to URI stringpublic void addErrorPage(Class<? extends Throwable> exception, String uri)
exception - The exceptionuri - The URI of the error page.public void addErrorPage(String exceptionClassName, String uri)
exceptionClassName - The exceptionuri - The URI of the error page.public void addErrorPage(int code,
String uri)
code - The HTTP status code to matchuri - The URI of the error page.public void addErrorPage(int from,
int to,
String uri)
from - The lowest matching status codeto - The highest matching status codeuri - The URI of the error page.Copyright © 2010 - 2020 Adobe. All Rights Reserved