org.apache.struts.chain
Class CreateAction

java.lang.Object
  extended byorg.apache.struts.chain.CreateAction
All Implemented Interfaces:
org.apache.commons.chain.Command

public class CreateAction
extends java.lang.Object
implements org.apache.commons.chain.Command

Create (if necessary) and cache an Action for this request.

Version:
$Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $
Author:
Craig R. McClanahan

Field Summary
private  java.lang.String actionConfigKey
           
private  java.lang.String actionKey
           
private  java.lang.String actionServletKey
           
private static org.apache.commons.logging.Log log
           
private  java.lang.String validKey
           
 
Constructor Summary
CreateAction()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context context)
          Create (if necessary) and cache an Action for this request.
 java.lang.String getActionConfigKey()
          Return the context attribute key under which the ActionConfig for the currently selected application action is stored.
 java.lang.String getActionKey()
          Return the context attribute key under which the Action for the currently selected application action is stored.
protected  java.util.Map getActions(org.apache.commons.chain.Context context, org.apache.struts.config.ModuleConfig moduleConfig)
          Create (if necessary) and return a Map containing the Action instances for the current application module.
 java.lang.String getActionServletKey()
          Return the context attribute key under which the ActionServlet for the current web application is stored.
 java.lang.String getValidKey()
          Return the context attribute key under which the validity flag for this request is stored.
 void setActionConfigKey(java.lang.String actionConfigKey)
          Set the context attribute key under which the ActionConfig for the currently selected application action is stored.
 void setActionKey(java.lang.String actionKey)
          Set the context attribute key under which the Action for the currently selected application action is stored.
 void setActionServletKey(java.lang.String actionServletKey)
          Set the context attribute key under which the ActionServlet for the current web application is stored.
 void setValidKey(java.lang.String validKey)
          Set the context attribute key under which the validity flag for this request is stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

actionKey

private java.lang.String actionKey

actionConfigKey

private java.lang.String actionConfigKey

actionServletKey

private java.lang.String actionServletKey

validKey

private java.lang.String validKey
Constructor Detail

CreateAction

public CreateAction()
Method Detail

getActionKey

public java.lang.String getActionKey()

Return the context attribute key under which the Action for the currently selected application action is stored.


setActionKey

public void setActionKey(java.lang.String actionKey)

Set the context attribute key under which the Action for the currently selected application action is stored.

Parameters:
actionKey - The new context attribute key

getActionConfigKey

public java.lang.String getActionConfigKey()

Return the context attribute key under which the ActionConfig for the currently selected application action is stored.


setActionConfigKey

public void setActionConfigKey(java.lang.String actionConfigKey)

Set the context attribute key under which the ActionConfig for the currently selected application action is stored.

Parameters:
actionConfigKey - The new context attribute key

getActionServletKey

public java.lang.String getActionServletKey()

Return the context attribute key under which the ActionServlet for the current web application is stored.


setActionServletKey

public void setActionServletKey(java.lang.String actionServletKey)

Set the context attribute key under which the ActionServlet for the current web application is stored.

Parameters:
actionServletKey - The new context attribute key

getValidKey

public java.lang.String getValidKey()

Return the context attribute key under which the validity flag for this request is stored.


setValidKey

public void setValidKey(java.lang.String validKey)

Set the context attribute key under which the validity flag for this request is stored.

Parameters:
validKey - The new context attribute key

execute

public boolean execute(org.apache.commons.chain.Context context)
                throws java.lang.Exception

Create (if necessary) and cache an Action for this request.

Specified by:
execute in interface org.apache.commons.chain.Command
Parameters:
context - The Context for the current request
Returns:
false so that processing continues
Throws:
java.lang.Exception

getActions

protected java.util.Map getActions(org.apache.commons.chain.Context context,
                                   org.apache.struts.config.ModuleConfig moduleConfig)

Create (if necessary) and return a Map containing the Action instances for the current application module.

Parameters:
context - The context for this request
moduleConfig - The ModuleConfig for the current application module


Copyright ? 2003 - Apache Software Foundation