KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > madvoc > result > ActionResult


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.madvoc.result;
4
5 import jodd.madvoc.ActionRequest;
6 import jodd.util.StringUtil;
7
8 /**
9  * Action result for specified result name.
10  * Action results are singletons for the web application.
11  */

12 public abstract class ActionResult {
13
14     protected String JavaDoc name;
15
16     /**
17      * Creates new action result.
18      */

19     public ActionResult(String JavaDoc name) {
20         this.name = name;
21     }
22
23     /**
24      * Returns the name of this action result.
25      */

26     public String JavaDoc getName() {
27         return name;
28     }
29
30
31     /**
32      * Executes result on given action result value.
33      */

34     public abstract void execute(ActionRequest request, String JavaDoc resultValue) throws Exception JavaDoc;
35
36 }
37
Popular Tags