01: /*
02: * projectManagement
03: *
04: * Enhydra super-servlet
05: *
06: */
07:
08: package projectmanagement;
09:
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 ProjectManagement extends StandardApplication {
21:
22: // The user who is allowed to run this application. Used with basic auth.
23: private String adminUsername, adminPassword, locale;
24:
25: /**
26: * Start the application.
27: *
28: * @param appConfig
29: * Configuration object for this application.
30: * @exception ApplicationException
31: * If an error occurs starting the application.
32: */
33: public void startup(Config appConfig) throws ApplicationException {
34: //Mandatory config settings.
35: try {
36: adminUsername = appConfig
37: .getString("ProjectManagement.AdminUsername");
38: adminPassword = appConfig
39: .getString("ProjectManagement.AdminPassword");
40:
41: } catch (ConfigException except) {
42: throw new ApplicationException(except);
43: }
44: super .startup(appConfig);
45: }
46:
47: public boolean requestPreprocessor(HttpPresentationComms comms)
48: throws Exception {
49:
50: return super .requestPreprocessor(comms);
51: }
52:
53: public String getAdminUsername() {
54: return adminUsername;
55: }
56:
57: public String getAdminPassword() {
58: return adminPassword;
59: }
60:
61: /**
62: * This is an optional function, used only by the Multiserver's graphical
63: * administration. This bit of HTML appears in the status page for this
64: * application. You could add extra status info, for example
65: * a list of currently logged in users.
66: *
67: * @return HTML that is displayed in the status page of the Multiserver.
68: */
69: public String toHtml() {
70: return "This is <I>projectManagement</I>";
71: }
72:
73: }
|