org.apache.struts.chain.commands
Class AbstractRequestNoCache

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.AbstractRequestNoCache
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand
Direct Known Subclasses:
RequestNoCache

public abstract class AbstractRequestNoCache
extends ActionCommandBase

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

Version:
$Rev: 471754 $ $Date: 2005-06-04 10:58:46 -0400 (Sat, 04 Jun 2005) $

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AbstractRequestNoCache()
           
 
Method Summary
 boolean execute(ActionContext actionCtx)
          Check to see if the controller is configured to prevent caching, and if so, request no cache flags to be set.
protected abstract  void requestNoCache(ActionContext context)
          Request no cache flags are set.
 
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequestNoCache

public AbstractRequestNoCache()
Method Detail

execute

public boolean execute(ActionContext actionCtx)
                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 ActionCommand
Specified by:
execute in class ActionCommandBase
Parameters:
actionCtx - The Context for the current request
Returns:
false so that processing continues
Throws:
java.lang.Exception - if thrown by the Action class

requestNoCache

protected abstract void requestNoCache(ActionContext context)

Request no cache flags are set.

Parameters:
context - The Context for this request


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.