KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > multibase > Multibase


1 /*
2  * multiDBExemple
3  *
4  * Enhydra super-servlet
5  *
6  */

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

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

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

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