Class DesignerRequestResponder


  • public final class DesignerRequestResponder
    extends Object
    Utility methods for responding to invalid requests when the designer is opened.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • handleAccessDenied

        public static void handleAccessDenied​(javax.faces.context.FacesContext facesContext,
                                              AccessDeniedException e)
        Sets the HTTP status to "403" (forbidden), redirects to the appropriate error page and terminates the current faces request.
        Parameters:
        facesContext - Faces context of the currently active faces request.
        e - Exception that caused the access to be denied.
      • handleGeneralError

        public static void handleGeneralError​(javax.faces.context.FacesContext facesContext,
                                              Throwable e)
        Sets the HTTP status to "500" (internal server error), redirects to the appropriate error page and terminates the current faces request.
        Parameters:
        facesContext - Faces context of the currently active faces request.
        e - Exception that resulted in the general error.
      • handleNotFound

        public static void handleNotFound​(javax.faces.context.FacesContext facesContext,
                                          NotFoundException e)
        Sets the HTTP status to "404" (not found), redirects to the appropriate error page and terminates the current faces request.
        Parameters:
        facesContext - Faces context of the currently active faces request.
        e - Exception that resulted in the not found error.