GlobalApp Class

com.bea.wlw.netui.pageflow
GlobalApp Class

public class GlobalApp

    extends FlowController
    implements PageFlowConstants

Base class for user-defined global state and fallback controller logic. A specific instance of this class (based on the Global.app source file in /WEB-INF/src/global) 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.

Related Topics

PageFlowController


Hierarchy
Object
  Action
    FlowController
      GlobalApp
All Implemented Interfaces

EventListener, HttpSessionBindingListener, PageFlowConstants, Serializable

Field Summary

   
Fields from  org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Fields from interface com.bea.wlw.netui.pageflow.PageFlowConstants
ACTION_EXTENSION, ACTION_EXTENSION_LEN, ACTION_OVERRIDE, BEGIN_ACTION_NAME, BEGIN_ACTION_PATH, DEFAULT_FORWARD_OVERFLOW_COUNT, DEFAULT_NESTING_OVERFLOW_COUNT, FORWARD_OVERFLOW_COUNT_PARAM, GLOBALAPP_CLASSNAME, GLOBALAPP_MEMBER_NAME, GLOBALAPP_MODULE_CONTEXT_PATH, GLOBALAPP_SOURCEFILE_NAME, INTERNAL_VAR_PREFIX, ISNESTABLE_VAR_NAME, JPF_EXTENSION, JPF_MODULE_CONFIG_EXTENSION, JPF_MODULE_CONFIG_GEN_DIR, JPF_MODULE_CONFIG_PREFIX, NESTING_OVERFLOW_COUNT_PARAM, PROCESS_ROLES_FAILED_ATTR, WEBINF_DIR
 

Constructor Summary

GlobalApp()

 

Method Summary

public void
ensureFailover(HttpServletRequest request)
Ensures that any changes to this FlowController will be replicated in a cluster (for failover), even if the replication scheme uses a change-detection algorithm that relies on HttpSession.setAttribute to be aware of changes.
public String
getDisplayName()
public String
getModulePath()
Get the Struts module path for Global.app.
 
Methods from  com.bea.wlw.netui.pageflow.FlowController
afterAction, alwaysTrackPreviousAction, alwaysTrackPreviousPage, beforeAction, execute, getActionMethod, getActions, getCurrentActionName, getMapping, getModuleConfig, getRequest, getResponse, getServlet, getSession, handleException, invokeActionMethod, isAction, isNestable, isPageFlow, login, logout, onCreate, onDestroy, onDestroy, resolveAction, retrieveUserLocale, sendError, valueBound, valueUnbound
 
Methods from  org.apache.struts.action.Action
execute, execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface javax.servlet.http.HttpSessionBindingListener
valueBound, valueUnbound
 

Constructor Detail

GlobalApp

public GlobalApp()
 

Method Detail

ensureFailover(HttpServletRequest) Method

public void ensureFailover(HttpServletRequest request)
Ensures that any changes to this FlowController will be replicated in a cluster (for failover), even if the replication scheme uses a change-detection algorithm that relies on HttpSession.setAttribute to be aware of changes.

Overrides
FlowController.ensureFailover(HttpServletRequest)

Parameters

request
the current HttpServletRequest

getDisplayName() Method

public String getDisplayName()
Overrides
FlowController.getDisplayName()

getModulePath() Method

public String getModulePath()
Get the Struts module path for Global.app.

Overrides
FlowController.getModulePath()

Returns

"/-global".