KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > ejosa > piggybank > PiggyBankApplication


1 /**
2  * Title: EJOSA - Enterprise Java Open Source Architecture
3  * My Piggy Bank Example
4  * Description: Enhydra Presentation Object
5  * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
6  * Company: University of Muenster, HTWK Leipzig
7  * @author B. Lofi Dewanto, T. Menzel
8  * @version 1.1
9  */

10 package net.sourceforge.ejosa.piggybank;
11
12 import com.lutris.appserver.server.*;
13 import com.lutris.appserver.server.httpPresentation.*;
14 import com.lutris.appserver.server.session.*;
15
16 import com.lutris.util.*;
17
18
19 /**
20  * Enhydra Application
21  *
22  * @author B. Lofi Dewanto, T. Menzel
23  * @version 1.1
24  */

25 public class PiggyBankApplication extends StandardApplication {
26     /*
27      * A few methods you might want to add to.
28      * See StandardApplication for more details.
29      */

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

50     public String JavaDoc toHtml() {
51         return "This is <I>piggybank</I>";
52     }
53 }
Popular Tags