| java.lang.Object org.apache.beehive.netui.pageflow.PageFlowManagedObject org.apache.beehive.netui.pageflow.FlowController org.apache.beehive.netui.pageflow.SharedFlowController org.apache.beehive.netui.pageflow.GlobalApp
GlobalApp | public class GlobalApp extends SharedFlowController (Code) | | Base class for user-defined global state and fallback controller logic. A specific instance of
this class (based on the Global.app/Global.java source file in the "global" package) is created and stored in
the user session before any
PageFlowController is created, and unless it is explicitly
removed from the session, it is not freed until the session is invalidated.
Actions that are not handled by the current
PageFlowController "bubble" up to the
current GlobalApp instance, which gets a chance to handle them in user-defined action methods.
Uncaught exceptions also bubble through the GlobalApp instance, which has a chance to catch
them.
Data in the current GlobalApp instance can be accessed by databinding tags using the globalApp scope.
SharedFlowController See Also: PageFlowController |
getURI | public String getURI()(Code) | | Get the URI for the webapp.
"/". |
savePreviousActionInfo | void savePreviousActionInfo(ActionForm form, HttpServletRequest request, ActionMapping mapping, ServletContext servletContext)(Code) | | Store information about the most recent action invocation.
|
Methods inherited from org.apache.beehive.netui.pageflow.SharedFlowController | public void ensureFailover(HttpServletRequest request)(Code)(Java Doc) public String getDisplayName()(Code)(Java Doc) public String getModulePath()(Code)(Java Doc) public PreviousPageInfo getPreviousPageInfoLegacy(PageFlowController curJpf, HttpServletRequest request)(Code)(Java Doc) public String getURI()(Code)(Java Doc) public void persistInSession(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) public synchronized void removeFromSession(HttpServletRequest request)(Code)(Java Doc) void savePreviousActionInfo(ActionForm form, HttpServletRequest request, ActionMapping mapping, ServletContext servletContext)(Code)(Java Doc) public void savePreviousPageInfo(ActionForward forward, ActionForm form, ActionMapping mapping, HttpServletRequest request, ServletContext servletContext, boolean isSpecialForward)(Code)(Java Doc)
|
Fields inherited from org.apache.beehive.netui.pageflow.FlowController | protected static Locale defaultLocale(Code)(Java Doc)
|
Methods inherited from org.apache.beehive.netui.pageflow.FlowController | protected void addActionError(String propertyName, String messageKey, Object[] messageArgs)(Code)(Java Doc) protected void addActionErrorExpression(String propertyName, String expression, Object[] messageArgs)(Code)(Java Doc) protected void addValidationError(String propertyName, String messageKey, Object[] messageArgs)(Code)(Java Doc) protected void addValidationError(String propertyName, String messageKey)(Code)(Java Doc) protected synchronized void afterAction() throws Exception(Code)(Java Doc) protected boolean alwaysTrackPreviousAction()(Code)(Java Doc) protected boolean alwaysTrackPreviousPage()(Code)(Java Doc) protected synchronized void beforeAction() throws Exception(Code)(Java Doc) public synchronized void create(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)(Java Doc) NotLoggedInException createNotLoggedInException(String actionName, HttpServletRequest request)(Code)(Java Doc) void decrementRequestCount(HttpServletRequest request)(Code)(Java Doc) void destroy(HttpSession session)(Code)(Java Doc) public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) ActionForward forwardTo(ActionForward fwd, ActionMapping mapping, PageFlowExceptionConfig exceptionConfig, String actionName, ModuleConfig altModuleConfig, ActionForm form, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)(Java Doc) protected String generateToken(HttpServletRequest request)(Code)(Java Doc) protected String generateToken()(Code)(Java Doc) final protected ActionMapping getActionMapping()(Code)(Java Doc) protected Method getActionMethod(String methodName, Class argType)(Code)(Java Doc) ActionForward getActionMethodForward(String actionName, Object inputForm, HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws Exception(Code)(Java Doc) public MutableURI getActionURI(String actionName) throws URISyntaxException(Code)(Java Doc) protected String[] getActions()(Code)(Java Doc) protected String getCurrentActionName()(Code)(Java Doc) protected DataSource getDataSource(HttpServletRequest request)(Code)(Java Doc) protected DataSource getDataSource(HttpServletRequest request, String key)(Code)(Java Doc) protected static Locale getDefaultLocale()(Code)(Java Doc) public ActionForm getFormBean(ActionMapping mapping)(Code)(Java Doc) FlowControllerHandlerContext getHandlerContext()(Code)(Java Doc) protected Locale getLocale(HttpServletRequest request)(Code)(Java Doc) protected Locale getLocale()(Code)(Java Doc) final protected ActionMapping getMapping()(Code)(Java Doc) protected MessageResources getMessageResources()(Code)(Java Doc) protected MessageResources getMessageResources(String key)(Code)(Java Doc) final protected ModuleConfig getModuleConfig()(Code)(Java Doc) public ModuleConfig getModuleConfig(ServletContext servletContext, HttpServletRequest request)(Code)(Java Doc) abstract public String getModulePath()(Code)(Java Doc) abstract public PreviousPageInfo getPreviousPageInfoLegacy(PageFlowController curJpf, HttpServletRequest request)(Code)(Java Doc) final protected HttpServletRequest getRequest()(Code)(Java Doc) PageFlowRequestProcessor getRequestProcessor()(Code)(Java Doc) protected MessageResources getResources()(Code)(Java Doc) protected MessageResources getResources(HttpServletRequest request)(Code)(Java Doc) protected MessageResources getResources(HttpServletRequest request, String key)(Code)(Java Doc) final protected HttpServletResponse getResponse()(Code)(Java Doc) public String getRewrittenActionURI(String actionName, Map parameters, boolean asValidXml) throws URISyntaxException(Code)(Java Doc) protected ActionServlet getServlet()(Code)(Java Doc) final protected HttpSession getSession()(Code)(Java Doc) public Principal getUserPrincipal()(Code)(Java Doc) public synchronized ActionForward handleException(Throwable ex, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) boolean incrementRequestCount(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException(Code)(Java Doc) protected ActionForward internalExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) protected ActionForward invokeActionMethod(Method method, Object arg) throws Exception(Code)(Java Doc) ActionForward invokeActionMethod(Method method, Object arg, HttpServletRequest request, ActionMapping mapping) throws Exception(Code)(Java Doc) public synchronized ActionForward invokeExceptionHandler(Method method, Throwable ex, String message, ActionForm wrappedFormBean, PageFlowExceptionConfig exceptionConfig, ActionMapping actionMapping, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException(Code)(Java Doc) public boolean isAction(String name)(Code)(Java Doc) protected boolean isCancelled(HttpServletRequest request)(Code)(Java Doc) public boolean isPageFlow()(Code)(Java Doc) protected boolean isTokenValid(HttpServletRequest request)(Code)(Java Doc) protected boolean isTokenValid()(Code)(Java Doc) protected boolean isTokenValid(HttpServletRequest request, boolean reset)(Code)(Java Doc) protected boolean isTokenValid(boolean reset)(Code)(Java Doc) public boolean isUserInRole(String roleName)(Code)(Java Doc) public void login(String username, String password) throws LoginException(Code)(Java Doc) public void logout(boolean invalidateSessions)(Code)(Java Doc) public static ActionResult lookup(String actionName, ServletContext context, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) public static ActionResult lookup(String actionName, ServletContext context, HttpServletRequest request, HttpServletResponse response, String actionServletClassName) throws Exception(Code)(Java Doc) protected void onCreate() throws Exception(Code)(Java Doc) protected void onDestroy()(Code)(Java Doc) protected void onDestroy(HttpSession session)(Code)(Java Doc) protected void onRefresh()(Code)(Java Doc) final public synchronized void refresh(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) public void reinitialize(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext)(Code)(Java Doc) protected void remove()(Code)(Java Doc) protected void resetToken(HttpServletRequest request)(Code)(Java Doc) protected void resetToken()(Code)(Java Doc) public String resolveAction(String actionName, Object form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc) public String resolveAction(String actionName, Object form) throws Exception(Code)(Java Doc) public static Locale retrieveUserLocale(HttpServletRequest request, String locale)(Code)(Java Doc) protected void saveActionErrors(ActionMessages errors)(Code)(Java Doc) protected void saveErrors(HttpServletRequest request, ActionMessages errors)(Code)(Java Doc) protected void saveMessages(HttpServletRequest request, ActionMessages messages)(Code)(Java Doc) void savePreviousActionInfo(ActionForm form, HttpServletRequest request, ActionMapping mapping, ServletContext servletContext)(Code)(Java Doc) public void savePreviousPageInfo(ActionForward forward, ActionForm form, ActionMapping mapping, HttpServletRequest request, ServletContext servletContext, boolean isSpecialForward)(Code)(Java Doc) protected void saveToken(HttpServletRequest request)(Code)(Java Doc) protected void sendError(String errText, HttpServletResponse response) throws IOException(Code)(Java Doc) protected void sendError(String errText, HttpServletRequest request, HttpServletResponse response) throws IOException(Code)(Java Doc) protected void setLocale(HttpServletRequest request, Locale locale)(Code)(Java Doc) protected void setLocale(Locale locale)(Code)(Java Doc) PerRequestState setPerRequestState(PerRequestState state)(Code)(Java Doc) final public ModuleConfig theModuleConfig()(Code)(Java Doc)
|
|
|