KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > test > TestActionHandler2


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.controller.test;
8
9
10 import com.inversoft.verge.mvc.controller.Action;
11 import com.inversoft.verge.mvc.controller.ActionHandlerException;
12
13
14 /**
15  * <p>
16  * This class is another action handler
17  * </p>
18  *
19  * @author Brian Pontarelli
20  */

21 public class TestActionHandler2 {
22
23     public boolean simple2 = false;
24     public boolean exception2 = false;
25
26
27     /**
28      * Instantiates a new <code>TestActionHandler2</code>
29      */

30     public TestActionHandler2() {
31     }
32
33
34     /**
35      * A test handle method
36      */

37     public void handleTestSimple2(Action action) {
38         System.out.println("Inside handleTestSimple2");
39         simple2 = true;
40     }
41
42     /**
43      * Tests exception handling
44      */

45     public void handleTestException2(Action event) throws ActionHandlerException {
46         System.out.println("Inside handleTestException2");
47         exception2 = true;
48         throw new ActionHandlerException("test");
49     }
50 }
Popular Tags