org.apache.struts.chain.commands.servlet
Class PerformInclude

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.AbstractPerformInclude
          extended by org.apache.struts.chain.commands.servlet.PerformInclude
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand

public class PerformInclude
extends AbstractPerformInclude

Perform forwarding or redirection based on the specified include uri (if any).

Version:
$Rev: 471754 $ $Date: 2005-11-09 00:11:45 -0500 (Wed, 09 Nov 2005) $

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
PerformInclude()
           
 
Method Summary
protected  String includePath(ActionContext actionContext, String include)
          Returns the path to perform the include.
protected  void perform(ActionContext context, String uri)
          Perform the appropriate processing on the specified include uri.
 
Methods inherited from class org.apache.struts.chain.commands.AbstractPerformInclude
execute
 
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

PerformInclude

public PerformInclude()
Method Detail

perform

protected void perform(ActionContext context,
                       String uri)
                throws Exception

Perform the appropriate processing on the specified include uri.

Specified by:
perform in class AbstractPerformInclude
Parameters:
context - The context for this request
uri - The uri to be included
Throws:
Exception - if thrown by the Action

includePath

protected String includePath(ActionContext actionContext,
                             String include)
Description copied from class: AbstractPerformInclude

Returns the path to perform the include. Override this method to provide a different path.

Overrides:
includePath in class AbstractPerformInclude
Parameters:
actionContext - The context for this request
include - The forward to be performed


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