KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infohazard > maverick > flow > Controller


1 /*
2  * $Id: Controller.java,v 1.4 2003/10/27 11:00:42 thusted Exp $
3  * $Source: /cvsroot/mav/maverick/src/java/org/infohazard/maverick/flow/Controller.java,v $
4  */

5
6 package org.infohazard.maverick.flow;
7
8 import javax.servlet.*;
9
10 /**
11  * Controller is the interface that all command controllers must implement.
12  * A controller which implements this interface (and not ControllerSingleton)
13  * will have a new instance instantiated for every request.
14  */

15 public interface Controller
16 {
17     /**
18      * @return which view to switch to
19      */

20     public String JavaDoc go(ControllerContext cctx) throws ServletException;
21 }
Popular Tags