org.mentawai.core
Interface Consequence

All Known Implementing Classes:
AjaxConsequence, AjaxtagConsequence, AjaxtagErrorConsequence, Chain, Forward, NullConsequence, Redirect, StreamConsequence, StringConsequence

public interface Consequence

Defines a Mentawai consequence. In Mentawai, an action has a result that in turn has a consequence.

Author:
Sergio Oliveira

Method Summary
 void execute(Action a, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Executes this consequence.
 

Method Detail

execute

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

Parameters:
a - The action that generated this consequence.
req - The servlet request of the action.
res - The servlet response of the action.
Throws:
ConsequenceException


Copyright © 2005 Mentawai Team. All Rights Reserved.