org.eclipse.jetty.server.handler.ErrorHandler.ErrorPageMapperpublic class ErrorPageErrorHandler
extends org.eclipse.jetty.server.handler.ErrorHandler
implements org.eclipse.jetty.server.handler.ErrorHandler.ErrorPageMapper
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerorg.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener| Modifier and Type | Field | Description |
|---|---|---|
protected ServletContext |
_servletContext |
|
static java.lang.String |
GLOBAL_ERROR_PAGE |
| Constructor | Description |
|---|---|
ErrorPageErrorHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addErrorPage(int from,
int to,
java.lang.String uri) |
Adds ErrorPage mapping for a status code range.
|
void |
addErrorPage(int code,
java.lang.String uri) |
Adds ErrorPage mapping for a status code.
|
void |
addErrorPage(java.lang.Class<? extends java.lang.Throwable> exception,
java.lang.String uri) |
Adds ErrorPage mapping for an exception class.
|
void |
addErrorPage(java.lang.String exceptionClassName,
java.lang.String uri) |
Adds ErrorPage mapping for an exception class.
|
protected void |
doStart() |
|
java.lang.String |
getErrorPage(HttpServletRequest request) |
|
java.util.Map<java.lang.String,java.lang.String> |
getErrorPages() |
|
void |
setErrorPages(java.util.Map<java.lang.String,java.lang.String> errorPages) |
destroy, doStop, dumpThis, getServer, setServeraddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopaddBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansbadMessageError, doError, generateAcceptableResponse, generateAcceptableResponse, getAcceptableWriter, getCacheControl, getErrorHandler, getShowMessageInTitle, handle, handleErrorPage, isShowStacks, setCacheControl, setShowMessageInTitle, setShowStacks, write, writeErrorPage, writeErrorPageBody, writeErrorPageHead, writeErrorPageMessage, writeErrorPageStackspublic static final java.lang.String GLOBAL_ERROR_PAGE
protected ServletContext _servletContext
public java.lang.String getErrorPage(HttpServletRequest request)
getErrorPage in interface org.eclipse.jetty.server.handler.ErrorHandler.ErrorPageMapperpublic java.util.Map<java.lang.String,java.lang.String> getErrorPages()
public void setErrorPages(java.util.Map<java.lang.String,java.lang.String> errorPages)
errorPages - a map of Exception class names or error codes as a string to URI stringpublic void addErrorPage(java.lang.Class<? extends java.lang.Throwable> exception,
java.lang.String uri)
exception - The exceptionuri - The URI of the error page.public void addErrorPage(java.lang.String exceptionClassName,
java.lang.String uri)
exceptionClassName - The exceptionuri - The URI of the error page.public void addErrorPage(int code,
java.lang.String uri)
code - The HTTP status code to matchuri - The URI of the error page.public void addErrorPage(int from,
int to,
java.lang.String uri)
from - The lowest matching status codeto - The highest matching status codeuri - The URI of the error page.protected void doStart()
throws java.lang.Exception
doStart in class org.eclipse.jetty.server.handler.AbstractHandlerjava.lang.ExceptionCopyright © 1995–2018 Webtide. All rights reserved.