use of com.iplanet.jato.CompleteRequestException in project OpenAM by OpenRock.
the class VersionServlet method onPageSessionDeserializationException.
@Override
protected void onPageSessionDeserializationException(RequestContext requestContext, ViewBean viewBean, Exception e) throws ServletException, IOException {
HttpServletRequest httpRequest = (HttpServletRequest) requestContext.getRequest();
AMViewBeanBase.debug.error("VersionServlet.onUncaughtException", e);
String redirectUrl = VersionViewBean.getCurrentURL(httpRequest) + "/base/AMInvalidURL";
requestContext.getResponse().sendRedirect(redirectUrl);
throw new CompleteRequestException();
}
use of com.iplanet.jato.CompleteRequestException in project OpenAM by OpenRock.
the class PWResetServlet method onPageSessionDeserializationException.
@Override
protected void onPageSessionDeserializationException(RequestContext requestContext, ViewBean viewBean, Exception e) throws ServletException, IOException {
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
ViewBean targetView = viewBeanManager.getViewBean(PWResetInvalidURLViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
use of com.iplanet.jato.CompleteRequestException in project OpenAM by OpenRock.
the class PWResetServlet method onUncaughtException.
/**
* Forwards to uncaught exception view bean, to respond to uncaught
* application error messages.
*
* @param requestContext request context
* @param e Exception that was not handled by the application.
* @throws ServletException
* @throws IOException
*/
protected void onUncaughtException(RequestContext requestContext, Exception e) throws ServletException, IOException {
PWResetModelImpl.debug.error("PWResetServlet.onUncaughtException", e);
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
ViewBean targetView = viewBeanManager.getViewBean(PWResetUncaughtExceptionViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
use of com.iplanet.jato.CompleteRequestException in project OpenAM by OpenRock.
the class PWResetServlet method onRequestHandlerNotFound.
/**
* Forwards to invalid URL view bean, in case of an invalid target
* request handler (page).
*
* @param requestContext request context
* @param handlerName name of handler
* @throws ServletException
*/
protected void onRequestHandlerNotFound(RequestContext requestContext, String handlerName) throws ServletException {
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
ViewBean targetView = viewBeanManager.getViewBean(PWResetInvalidURLViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
use of com.iplanet.jato.CompleteRequestException in project OpenAM by OpenRock.
the class AuthenticationServletBase method onPageSessionDeserializationException.
@Override
protected void onPageSessionDeserializationException(RequestContext requestContext, ViewBean viewBean, Exception e) throws ServletException, IOException {
ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
AuthExceptionViewBean vb = (AuthExceptionViewBean) viewBeanManager.getViewBean(com.sun.identity.authentication.UI.AuthExceptionViewBean.class);
if (exDebug.messageEnabled()) {
exDebug.message("AuthenticationServletBase.onPageSessionDeserializationException:", e);
}
vb.forwardTo(requestContext);
throw new CompleteRequestException();
}
Aggregations