Class ErrorHandler
java.lang.Object
org.eclipse.jetty.server.handler.ErrorHandler
org.eclipse.jetty.ee10.servlet.ErrorHandler
- All Implemented Interfaces:
org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.util.thread.Invocable
- Direct Known Subclasses:
ErrorPageErrorHandler
public class ErrorHandler
extends org.eclipse.jetty.server.handler.ErrorHandler
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.eclipse.jetty.server.handler.ErrorHandler
org.eclipse.jetty.server.handler.ErrorHandler.ErrorRequestNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.TaskNested classes/interfaces inherited from interface org.eclipse.jetty.server.Request.Handler
org.eclipse.jetty.server.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_ORIGIN, ERROR_STATUSFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleangenerateAcceptableResponse(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, String contentType, List<Charset> charsets, int code, String message, Throwable cause) static org.eclipse.jetty.server.Request.HandlergetErrorHandler(org.eclipse.jetty.server.Server server, org.eclipse.jetty.server.handler.ContextHandler context) booleanhandle(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback) booleanwriteError(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, int code) protected voidwriteErrorHtmlMessage(org.eclipse.jetty.server.Request request, Writer writer, int code, String message, Throwable cause, String uri) Methods inherited from class org.eclipse.jetty.server.handler.ErrorHandler
badMessageError, computeBufferSize, errorPageForMethod, generateCacheControl, generateResponse, getBufferSize, getCacheControl, getDefaultResponseMimeType, htmlRow, isShowCauses, isShowMessageInTitle, isShowOrigin, isShowStacks, setBufferSize, setCacheControl, setDefaultResponseMimeType, setShowCauses, setShowMessageInTitle, setShowOrigin, setShowStacks, toString, write, writeErrorHtml, writeErrorHtmlBody, writeErrorHtmlHead, writeErrorHtmlMeta, writeErrorHtmlStacks, writeErrorJson, writeErrorOrigin, writeErrorPlainMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.server.Request.Handler
getInvocationType
-
Constructor Details
-
ErrorHandler
public ErrorHandler()
-
-
Method Details
-
writeError
public boolean writeError(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, int code) - Overrides:
writeErrorin classorg.eclipse.jetty.server.handler.ErrorHandler
-
handle
public boolean handle(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback) throws Exception - Specified by:
handlein interfaceorg.eclipse.jetty.server.Request.Handler- Overrides:
handlein classorg.eclipse.jetty.server.handler.ErrorHandler- Throws:
Exception
-
generateAcceptableResponse
protected boolean generateAcceptableResponse(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, String contentType, List<Charset> charsets, int code, String message, Throwable cause) throws IOException - Overrides:
generateAcceptableResponsein classorg.eclipse.jetty.server.handler.ErrorHandler- Throws:
IOException
-
writeErrorHtmlMessage
protected void writeErrorHtmlMessage(org.eclipse.jetty.server.Request request, Writer writer, int code, String message, Throwable cause, String uri) throws IOException - Overrides:
writeErrorHtmlMessagein classorg.eclipse.jetty.server.handler.ErrorHandler- Throws:
IOException
-
getErrorHandler
public static org.eclipse.jetty.server.Request.Handler getErrorHandler(org.eclipse.jetty.server.Server server, org.eclipse.jetty.server.handler.ContextHandler context)
-