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
Nested ClassesModifier and TypeClassDescriptionstatic classAnReHandlingErrorHandlerthat uses a map of error codes to select a page.Nested classes/interfaces inherited from class ErrorHandler
ErrorHandler.ErrorRequestNested classes/interfaces inherited from interface Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.TaskNested classes/interfaces inherited from interface Request.Handler
Request.Handler.AbortException -
Field Summary
Fields inherited from class ErrorHandler
ERROR_CACHE_CONTROL, ERROR_CONTEXT, ERROR_EXCEPTION, ERROR_MESSAGE, ERROR_METHODS, ERROR_STATUSFields inherited from interface Invocable
__nonBlocking, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) protected abstract StringgetReHandlePathInContext(Request request, int code, Throwable cause) Methods inherited from class 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:
generateResponsein classErrorHandler- Throws:
IOException
-
getReHandlePathInContext
-