org.mentawai.core
Interface Consequence

All Known Implementing Classes:
AjaxConsequence, AjaxRedirectConsequence, AjaxtagConsequence, AjaxtagErrorConsequence, Chain, ExceptionConsequence, Forward, ForwardToActionConsequence, NullConsequence, Redirect, ResultConsequence, 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, String result, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Executes this consequence.
 

Method Detail

execute

void execute(Action a,
             String result,
             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.
result - The result generated by the action.
req - The servlet request of the action.
res - The servlet response of the action.
Throws:
ConsequenceException


Copyright © 2013. All Rights Reserved.