org.apache.struts.chain
Class AbstractRequestNoCache

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

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

Check to see if the controller is configured to prevent caching, and if so, request no cache flags to be set.

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

Field Summary
private  java.lang.String moduleConfigKey
           
 
Constructor Summary
AbstractRequestNoCache()
           
 
Method Summary
 boolean execute(org.apache.commons.chain.Context context)
          Check to see if the controller is configured to prevent caching, and if so, request no cache flags to be set.
 java.lang.String getModuleConfigKey()
          Return the context attribute key under which the ModuleConfig for the currently selected application module is stored.
protected abstract  void requestNoCache(org.apache.commons.chain.Context context)
          Request no cache flags are set.
 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

moduleConfigKey

private java.lang.String moduleConfigKey
Constructor Detail

AbstractRequestNoCache

public AbstractRequestNoCache()
Method Detail

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

Check to see if the controller is configured to prevent caching, and if so, request no cache flags to be set.

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

requestNoCache

protected abstract void requestNoCache(org.apache.commons.chain.Context context)

Request no cache flags are set.

Parameters:
context - The Context for this request


Copyright ? 2003 - Apache Software Foundation