org.apache.struts.chain
Class SelectInclude

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

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

Select and cache the include for this ActionConfig if specified.

Version:
$Rev: 54933 $ $Date: 2004-10-16 18:04:52 +0100 (Sat, 16 Oct 2004) $
Author:
Don Brown

Field Summary
private  java.lang.String actionConfigKey
           
private  java.lang.String includeKey
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
SelectInclude()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context context)
          Select and cache the include uri for this ActionConfig if specified.
 java.lang.String getActionConfigKey()
          Return the context attribute key under which the ActionConfig for the currently selected application action is stored.
 java.lang.String getIncludeKey()
          Return the context attribute key under which the include uri 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 setIncludeKey(java.lang.String includeKey)
          Set the context attribute key under which the include uri 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

includeKey

private java.lang.String includeKey

log

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

SelectInclude

public SelectInclude()
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

getIncludeKey

public java.lang.String getIncludeKey()

Return the context attribute key under which the include uri is stored.


setIncludeKey

public void setIncludeKey(java.lang.String includeKey)

Set the context attribute key under which the include uri is stored.

Parameters:
includeKey - The new context attribute key

execute

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

Select and cache the include uri for this ActionConfig if specified.

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


Copyright ? 2003 - Apache Software Foundation