Package org.eclipse.jetty.server.handler
Class ReHandlingErrorHandler
java.lang.Object
org.eclipse.jetty.server.handler.ErrorHandler
org.eclipse.jetty.server.handler.ReHandlingErrorHandler
- All Implemented Interfaces:
Request.Handler
,Invocable
- Direct Known Subclasses:
ReHandlingErrorHandler.ByHttpStatus
An
ErrorHandler
that can re-handle a request at an error page location.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AnReHandlingErrorHandler
that uses a map of error codes to select a page.Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.ErrorHandler
ErrorHandler.ErrorRequest
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Request.Handler
Request.Handler.AbortException
-
Field Summary
Fields inherited from class org.eclipse.jetty.server.handler.ErrorHandler
ERROR_CACHE_CONTROL, ERROR_CONTEXT, ERROR_EXCEPTION, ERROR_MESSAGE, ERROR_METHODS, ERROR_STATUS
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
generateResponse
(Request request, Response response, int code, String message, Throwable cause, Callback callback) protected abstract String
getReHandlePathInContext
(Request request, int code, Throwable cause) Methods inherited from class org.eclipse.jetty.server.handler.ErrorHandler
badMessageError, computeBufferSize, errorPageForMethod, generateAcceptableResponse, getBufferSize, getCacheControl, getDefaultResponseMimeType, getErrorHandler, handle, isShowCauses, isShowMessageInTitle, isShowStacks, setBufferSize, setCacheControl, setDefaultResponseMimeType, setShowCauses, setShowMessageInTitle, setShowStacks, write, writeErrorHtml, writeErrorHtmlBody, writeErrorHtmlHead, writeErrorHtmlMessage, writeErrorHtmlMeta, writeErrorHtmlStacks, writeErrorJson, writeErrorPlain
-
Constructor Details
-
ReHandlingErrorHandler
-
-
Method Details
-
getInvocationType
- Returns:
- The InvocationType of this object
-
generateResponse
protected void generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) throws IOException - Overrides:
generateResponse
in classErrorHandler
- Throws:
IOException
-
getReHandlePathInContext
-