org.apache.struts.chain
Class AbstractSelectAction

java.lang.Object
  extended byorg.apache.struts.chain.AbstractSelectAction
All Implemented Interfaces:
org.apache.commons.chain.Command
Direct Known Subclasses:
SelectAction

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

Cache the ActionConfig instance for the action to be used for processing 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 moduleConfigKey
           
 
Constructor Summary
AbstractSelectAction()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context context)
          Cache the ActionConfig instance for the action to be used for processing 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 getModuleConfigKey()
          Return the context attribute key under which the ModuleConfig for the currently selected application module is stored.
protected abstract  java.lang.String getPath(org.apache.commons.chain.Context context)
          Return the path to be used to select the ActionConfig for this request.
 void setActionConfigKey(java.lang.String actionConfigKey)
          Set the context attribute key under which the ActionConfig for the currently selected application action is stored.
 void setModuleConfigKey(java.lang.String moduleConfigKey)
          Set the context attribute key under which the ModuleConfig for the currently selected application module is stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

actionConfigKey

private java.lang.String actionConfigKey

moduleConfigKey

private java.lang.String moduleConfigKey
Constructor Detail

AbstractSelectAction

public AbstractSelectAction()
Method Detail

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

getModuleConfigKey

public java.lang.String getModuleConfigKey()

Return the context attribute key under which the ModuleConfig for the currently selected application module is stored.


setModuleConfigKey

public void setModuleConfigKey(java.lang.String moduleConfigKey)

Set the context attribute key under which the ModuleConfig for the currently selected application module is stored.

Parameters:
moduleConfigKey - The new context attribute key

execute

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

Cache the ActionConfig instance for the action to be used for processing 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.IllegalArgumentException - if no valid action can be identified for this request
java.lang.Exception

getPath

protected abstract java.lang.String getPath(org.apache.commons.chain.Context context)

Return the path to be used to select the ActionConfig for this request.

Parameters:
context - The Context for this request
Throws:
java.lang.IllegalArgumentException - if no valid action can be identified for this request


Copyright ? 2003 - Apache Software Foundation