KickJava   Java API By Example, From Geeks To Geeks.

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


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

5
6 package org.infohazard.maverick.flow;
7
8 import java.io.IOException JavaDoc;
9 import javax.servlet.ServletException JavaDoc;
10
11 /**
12  */

13 class ViewShunted implements View
14 {
15     /**
16      */

17     protected Shunt shunt;
18
19     /**
20      */

21     public ViewShunted(Shunt shunt)
22     {
23         this.shunt = shunt;
24     }
25
26     /**
27      */

28     public void defineMode(String JavaDoc mode, View v) throws ConfigException
29     {
30         this.shunt.defineMode(mode, v);
31     }
32
33     /**
34      */

35     public void go(ViewContext vctx) throws IOException JavaDoc, ServletException JavaDoc
36     {
37         View v = this.shunt.getView(vctx.getRequest());
38         v.go(vctx);
39     }
40 }
Popular Tags