01: /*
02: * Enhydra Java Application Server Project
03: *
04: * The contents of this file are subject to the Enhydra Public License
05: * Version 1.1 (the "License"); you may not use this file except in
06: * compliance with the License. You may obtain a copy of the License on
07: * the Enhydra web site ( http://www.enhydra.org/ ).
08: *
09: * Software distributed under the License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11: * the License for the specific terms governing rights and limitations
12: * under the License.
13: *
14: * The Initial Developer of the Enhydra Application Server is Lutris
15: * Technologies, Inc. The Enhydra Application Server and portions created
16: * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17: * All Rights Reserved.
18: *
19: * Contributor(s):
20: *
21: * $Id: DiscRack.java,v 1.1 2006-09-11 12:32:06 sinisa Exp $
22: */
23:
24: package discRack;
25:
26: import com.lutris.appserver.server.*;
27: import com.lutris.appserver.server.httpPresentation.*;
28: import com.lutris.appserver.server.session.*;
29: import com.lutris.util.*;
30:
31: /**
32: * The application object.
33: *
34: * Application-wide data would go here.
35: */
36: public class DiscRack extends StandardApplication {
37:
38: /*
39: * A few methods you might want to add to.
40: * See StandardApplication for more details.
41: */
42: public void startup(Config appConfig) throws ApplicationException {
43: super .startup(appConfig);
44: // Here is where you would read application-specific settings from
45: // your config file.
46: }
47:
48: public boolean requestPreprocessor(HttpPresentationComms comms)
49: throws Exception {
50: return super .requestPreprocessor(comms);
51: }
52:
53: /**
54: * This is an optional function, used only by the Multiserver's graphical
55: * administration. This bit of HTML appears in the status page for this
56: * application. You could add extra status info, for example
57: * a list of currently logged in users.
58: *
59: * @return HTML that is displayed in the status page of the Multiserver.
60: */
61: public String toHtml() {
62: return "This is <I>discRack</I>";
63: }
64: }
|