Interface HttpErrorHandler

All Known Implementing Classes:
LicenseMissingErrorHandler

public interface HttpErrorHandler
Interface to describe specific handlers for specific error conditions.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(org.eclipse.jetty.server.Request request, int code)
    Can this implementation handle the type of error raised for the request?
    default void
    changeResponse(org.eclipse.jetty.server.Response response)
    Enables a specific handler to change the response.
    void
    Write the content of the HTML page to display.
  • Method Details

    • canHandle

      boolean canHandle(org.eclipse.jetty.server.Request request, int code)
      Can this implementation handle the type of error raised for the request?
    • writeErrorContent

      void writeErrorContent(Writer writer) throws IOException
      Write the content of the HTML page to display.
      Throws:
      IOException
    • changeResponse

      default void changeResponse(org.eclipse.jetty.server.Response response)
      Enables a specific handler to change the response.