Class CustomErrorHandler

java.lang.Object
org.eclipse.jetty.server.handler.ErrorHandler
com.xebialabs.deployit.CustomErrorHandler
All Implemented Interfaces:
org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.util.thread.Invocable

public class CustomErrorHandler extends org.eclipse.jetty.server.handler.ErrorHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.ErrorHandler

    org.eclipse.jetty.server.handler.ErrorHandler.ErrorRequest

    Nested 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.Task

    Nested 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_STATUS

    Fields inherited from interface org.eclipse.jetty.util.thread.Invocable

    __nonBlocking, NOOP
  • Constructor Summary

    Constructors
    Constructor
    Description
    default constructor for backwards compatibility.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    protected void
    writeErrorHtml(org.eclipse.jetty.server.Request request, Writer writer, Charset charset, int code, String message, Throwable cause, boolean showStacks)
     

    Methods inherited from class org.eclipse.jetty.server.handler.ErrorHandler

    badMessageError, computeBufferSize, errorPageForMethod, generateResponse, getBufferSize, getCacheControl, getDefaultResponseMimeType, getErrorHandler, handle, isShowCauses, isShowMessageInTitle, isShowStacks, setBufferSize, setCacheControl, setDefaultResponseMimeType, setShowCauses, setShowMessageInTitle, setShowStacks, write, writeErrorHtmlBody, writeErrorHtmlHead, writeErrorHtmlMessage, writeErrorHtmlMeta, writeErrorHtmlStacks, writeErrorJson, writeErrorPlain

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.server.Request.Handler

    getInvocationType
  • Constructor Details

    • CustomErrorHandler

      public CustomErrorHandler()
      default constructor for backwards compatibility.
    • CustomErrorHandler

      public CustomErrorHandler(HttpErrorHandler... handlers)
  • Method Details

    • 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:
      generateAcceptableResponse in class org.eclipse.jetty.server.handler.ErrorHandler
      Throws:
      IOException
    • writeErrorHtml

      protected void writeErrorHtml(org.eclipse.jetty.server.Request request, Writer writer, Charset charset, int code, String message, Throwable cause, boolean showStacks) throws IOException
      Overrides:
      writeErrorHtml in class org.eclipse.jetty.server.handler.ErrorHandler
      Throws:
      IOException