KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enhydraFlash > EnhydraFlash


1 /*
2  * enhydraFlash
3  * A sample Enhydra Application
4  *
5  */

6
7 package enhydraFlash;
8
9 import com.lutris.appserver.server.*;
10 import com.lutris.appserver.server.httpPresentation.*;
11 import com.lutris.appserver.server.session.*;
12 import com.lutris.util.*;
13
14 /**
15  * The application object.
16  *
17  * Application-wide data would go here.
18  */

19 public class EnhydraFlash extends StandardApplication {
20
21     /*
22      * A few methods you might want to add to.
23      * See StandardApplication for more details.
24      */

25     public void startup(Config appConfig) throws ApplicationException {
26         super.startup(appConfig);
27         // Here is where you would read application-specific settings from
28
// your config file.
29
}
30     public boolean requestPreprocessor(HttpPresentationComms comms)
31                    throws Exception JavaDoc {
32         return super.requestPreprocessor(comms);
33     }
34
35     /**
36      * This is an optional function, used only by the Multiserver's graphical
37      * administration. This bit of HTML appears in the status page for this
38      * application. You could add extra status info, for example
39      * a list of currently logged in users.
40      *
41      * @return HTML that is displayed in the status page of the Multiserver.
42      */

43     public String JavaDoc toHtml() {
44         return "This is <I>enhydraFlash</I>";
45     }
46 }
47
48
Popular Tags