Interface HttpErrorHandler

  • All Known Implementing Classes:
    LicenseMissingErrorHandler

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

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      boolean canHandle​(javax.servlet.http.HttpServletRequest request, int code)
      Can this implementation handle the type of error raised for the request?
      default void changeResponse​(javax.servlet.http.HttpServletResponse response)
      Enables a specific handler to change the response.
      void writeErrorContent​(java.io.Writer writer)
      Write the content of the HTML page to display.
    • Method Detail

      • canHandle

        boolean canHandle​(javax.servlet.http.HttpServletRequest request,
                          int code)
        Can this implementation handle the type of error raised for the request?
      • writeErrorContent

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

        default void changeResponse​(javax.servlet.http.HttpServletResponse response)
        Enables a specific handler to change the response.