Class ErrorHandler

    • Field Detail

      • ERROR_PAGE

        public static final java.lang.String ERROR_PAGE
        Deprecated.
        See Also:
        Constant Field Values
      • ERROR_CONTEXT

        public static final java.lang.String ERROR_CONTEXT
        Deprecated.
        See Also:
        Constant Field Values
      • ERROR_CHARSET

        public static final java.lang.String ERROR_CHARSET
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ErrorHandler

        public ErrorHandler()
        Deprecated.
    • Method Detail

      • errorPageForMethod

        public boolean errorPageForMethod​(java.lang.String method)
        Deprecated.
      • badMessageError

        public java.nio.ByteBuffer badMessageError​(int status,
                                                   java.lang.String reason,
                                                   HttpFields fields)
        Deprecated.
        Bad Message Error body

        Generate an error response body to be sent for a bad message. In this case there is something wrong with the request, so either a request cannot be built, or it is not safe to build a request. This method allows for a simple error page body to be returned and some response headers to be set.

        Parameters:
        status - The error code that will be sent
        reason - The reason for the error code (may be null)
        fields - The header fields that will be sent with the response.
        Returns:
        The content as a ByteBuffer, or null for no body.
      • getCacheControl

        public java.lang.String getCacheControl()
        Deprecated.
        Get the cacheControl.
        Returns:
        the cacheControl header to set on error responses.
      • setCacheControl

        public void setCacheControl​(java.lang.String cacheControl)
        Deprecated.
        Set the cacheControl.
        Parameters:
        cacheControl - the cacheControl header to set on error responses.
      • isShowServlet

        public boolean isShowServlet()
        Deprecated.
        Returns:
        True if the error page will show the Servlet that generated the error
      • setShowServlet

        public void setShowServlet​(boolean showServlet)
        Deprecated.
        Parameters:
        showServlet - True if the error page will show the Servlet that generated the error
      • isShowStacks

        public boolean isShowStacks()
        Deprecated.
        Returns:
        True if stack traces are shown in the error pages
      • setShowStacks

        public void setShowStacks​(boolean showStacks)
        Deprecated.
        Parameters:
        showStacks - True if stack traces are shown in the error pages
      • setShowMessageInTitle

        public void setShowMessageInTitle​(boolean showMessageInTitle)
        Deprecated.
        Parameters:
        showMessageInTitle - if true, the error message appears in page title
      • getShowMessageInTitle

        public boolean getShowMessageInTitle()
        Deprecated.