use of com.iplanet.jato.ViewBeanManager in project OpenAM by OpenRock.
the class SCServlet method initializeRequestContext.
/**
* Initialize request context and set the viewbean manager
* @param requestContext current request context
*/
protected void initializeRequestContext(RequestContext requestContext) {
super.initializeRequestContext(requestContext);
ViewBeanManager viewBeanManager = new ViewBeanManager(requestContext, PACKAGE_NAME);
((RequestContextImpl) requestContext).setViewBeanManager(viewBeanManager);
}
use of com.iplanet.jato.ViewBeanManager in project OpenAM by OpenRock.
the class TaskServlet method initializeRequestContext.
/**
* Initializes request context and set the viewbean manager.
*
* @param requestContext current request context
*/
protected void initializeRequestContext(RequestContext requestContext) {
super.initializeRequestContext(requestContext);
ViewBeanManager viewBeanManager = new ViewBeanManager(requestContext, PACKAGE_NAME);
((RequestContextImpl) requestContext).setViewBeanManager(viewBeanManager);
}
use of com.iplanet.jato.ViewBeanManager in project OpenAM by OpenRock.
the class ConsoleServletBase 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(AMInvalidURLViewBean.class);
targetView.forwardTo(requestContext);
throw new CompleteRequestException();
}
use of com.iplanet.jato.ViewBeanManager in project OpenAM by OpenRock.
the class ConsoleServletBase method browserRedirect.
private void browserRedirect(RequestContext requestContext, String url) {
ViewBeanManager mgr = requestContext.getViewBeanManager();
AMLoginViewBean vb = (AMLoginViewBean) mgr.getViewBean(AMLoginViewBean.class);
if (getDebug().messageEnabled()) {
getDebug().message("ConsoleServletBase.browserRedirect " + "redirecting unauthenticated user to " + url);
}
vb.setLoginURL(url);
vb.forwardTo(requestContext);
}
use of com.iplanet.jato.ViewBeanManager in project OpenAM by OpenRock.
the class IDMServlet method initializeRequestContext.
/**
* Initialize request context and set the viewbean manager
* @param requestContext current request context
*/
protected void initializeRequestContext(RequestContext requestContext) {
super.initializeRequestContext(requestContext);
ViewBeanManager viewBeanManager = new ViewBeanManager(requestContext, PACKAGE_NAME);
((RequestContextImpl) requestContext).setViewBeanManager(viewBeanManager);
}
Aggregations