Package de.xima.fc.gui.utils.designer
Class DesignerRequestResponder
java.lang.Object
de.xima.fc.gui.utils.designer.DesignerRequestResponder
Utility methods for responding to invalid requests when the designer is opened.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
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.
-