org.mentawai.core
Class StringConsequence

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

public class StringConsequence
extends java.lang.Object
implements Consequence

Returns a String as the result of an action.

Author:
Sergio Oliveira Jr.

Field Summary
static java.lang.String KEY
           
 
Constructor Summary
StringConsequence()
           
StringConsequence(java.lang.String key)
           
 
Method Summary
 void execute(Action a, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Executes this consequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
See Also:
Constant Field Values
Constructor Detail

StringConsequence

public StringConsequence()

StringConsequence

public StringConsequence(java.lang.String key)
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


Copyright © 2005 Mentawai Team. All Rights Reserved.