01: /**
02: * Title: EJOSA - Enterprise Java Open Source Architecture
03: * My Piggy Bank Example
04: * Description: Enhydra Presentation Object
05: * Copyright: Copyright (c) 2003 by B. Lofi Dewanto, T. Menzel
06: * Company: University of Muenster, HTWK Leipzig
07: * @author B. Lofi Dewanto, T. Menzel
08: * @version 1.1
09: */package net.sourceforge.ejosa.piggybank;
10:
11: import com.lutris.appserver.server.*;
12: import com.lutris.appserver.server.httpPresentation.*;
13: import com.lutris.appserver.server.session.*;
14:
15: import com.lutris.util.*;
16:
17: /**
18: * Enhydra Application
19: *
20: * @author B. Lofi Dewanto, T. Menzel
21: * @version 1.1
22: */
23: public class PiggyBankApplication extends StandardApplication {
24: /*
25: * A few methods you might want to add to.
26: * See StandardApplication for more details.
27: */
28: public void startup(Config appConfig) throws ApplicationException {
29: super .startup(appConfig);
30:
31: // Here is where you would read application-specific settings from
32: // your config file.
33: }
34:
35: public boolean requestPreprocessor(HttpPresentationComms comms)
36: throws Exception {
37: return super .requestPreprocessor(comms);
38: }
39:
40: /**
41: * This is an optional function, used only by the Multiserver's graphical
42: * administration. This bit of HTML appears in the status page for this
43: * application. You could add extra status info, for example
44: * a list of currently logged in users.
45: *
46: * @return HTML that is displayed in the status page of the Multiserver.
47: */
48: public String toHtml() {
49: return "This is <I>piggybank</I>";
50: }
51: }
|