01: /*
02: * enhydraFlash
03: * A sample Enhydra Application
04: *
05: */
06:
07: package enhydraFlash;
08:
09: 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:
31: public boolean requestPreprocessor(HttpPresentationComms comms)
32: throws Exception {
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 toHtml() {
45: return "This is <I>enhydraFlash</I>";
46: }
47: }
|