Package org.eclipse.jetty.servlet
Class ErrorPageErrorHandler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.ErrorHandler
org.eclipse.jetty.servlet.ErrorPageErrorHandler
- All Implemented Interfaces:
Handler,ErrorHandler.ErrorPageMapper,Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
@Deprecated(since="2021-05-27")
public class ErrorPageErrorHandler
extends ErrorHandler
implements ErrorHandler.ErrorPageMapper
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
An ErrorHandler that maps exceptions and status codes to URIs for dispatch using
the internal ERROR style of dispatch.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.ErrorHandler
ErrorHandler.ErrorPageMapperNested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler
AbstractHandler.ErrorDispatchHandlerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
FieldsFields inherited from class org.eclipse.jetty.server.handler.ErrorHandler
ERROR_CHARSET, ERROR_CONTEXT, ERROR_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorPage(int from, int to, String uri) Deprecated.Adds ErrorPage mapping for a status code range.voidaddErrorPage(int code, String uri) Deprecated.Adds ErrorPage mapping for a status code.voidaddErrorPage(Class<? extends Throwable> exception, String uri) Deprecated.Adds ErrorPage mapping for an exception class.voidaddErrorPage(String exceptionClassName, String uri) Deprecated.Adds ErrorPage mapping for an exception class.getErrorPage(HttpServletRequest request) Deprecated.Deprecated.voidsetErrorPages(Map<String, String> errorPages) Deprecated.Methods inherited from class org.eclipse.jetty.server.handler.ErrorHandler
badMessageError, doError, errorPageForMethod, getCacheControl, getErrorHandler, getShowMessageInTitle, handle, isShowServlet, isShowStacks, setCacheControl, setShowMessageInTitle, setShowServlet, setShowStacksMethods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, getServer, setServerMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, 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, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Field Details
-
GLOBAL_ERROR_PAGE
Deprecated.- See Also:
-
-
Constructor Details
-
ErrorPageErrorHandler
public ErrorPageErrorHandler()Deprecated.
-
-
Method Details
-
getErrorPage
Deprecated.- Specified by:
getErrorPagein interfaceErrorHandler.ErrorPageMapper
-
getErrorPages
Deprecated. -
setErrorPages
Deprecated.- Parameters:
errorPages- a map of Exception class names or error codes as a string to URI string
-
addErrorPage
Deprecated.Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly- Parameters:
exception- The exceptionuri- The URI of the error page.
-
addErrorPage
Deprecated.Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly- Parameters:
exceptionClassName- The exceptionuri- The URI of the error page.
-
addErrorPage
Deprecated.Adds ErrorPage mapping for a status code. This method is called as a result of an error-code element in a web.xml file or may be called directly.- Parameters:
code- The HTTP status code to matchuri- The URI of the error page.
-
addErrorPage
Deprecated.Adds ErrorPage mapping for a status code range. This method is not available from web.xml and must be called directly.- Parameters:
from- The lowest matching status codeto- The highest matching status codeuri- The URI of the error page.
-