org.mentawai.core
Class Chain

java.lang.Object
  extended by org.mentawai.core.Chain
All Implemented Interfaces:
Consequence

public class Chain
extends java.lang.Object
implements Consequence

An action chaining consequence.

Author:
Sergio Oliveira

Constructor Summary
Chain(ActionConfig ac)
          Creates a chain consequence for the given ActionConfig.
Chain(ActionConfig ac, java.lang.String innerAction)
          Creates a chain consequence for the given ActionConfig
 
Method Summary
 void execute(Action a, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Executes this consequence.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Chain

public Chain(ActionConfig ac)
Creates a chain consequence for the given ActionConfig.

Parameters:
ac - The ActionConfig to chain.

Chain

public Chain(ActionConfig ac,
             java.lang.String innerAction)
Creates a chain consequence for the given ActionConfig

Parameters:
ac -
innerAction -
Since:
1.12
Method Detail

execute

public void execute(Action a,
                    javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws ConsequenceException
Description copied from interface: Consequence
Executes this consequence. A consequence must do something with your web application. Here is where you define what the consequence does.

Specified by:
execute in interface Consequence
Parameters:
a - The action that generated this consequence.
req - The servlet request of the action.
res - The servlet response of the action.
Throws:
ConsequenceException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 Mentawai Team. All Rights Reserved.