Package de.xima.fc.gui.utils.designer
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhandleAccessDenied(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 voidhandleGeneralError(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 voidhandleNotFound(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.
-
-
-
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.
-
-