Class DesignerRequestResponder

java.lang.Object
de.xima.fc.gui.utils.designer.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 Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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.