KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hamletsoft > enhydra > cactus > CactusForEnhydraTest


1 /*
2  * cactus
3  *
4  * Enhydra super-servlet
5  *
6  * 2001 Ryuji "The Hamlet" Hattori. all right reserved
7  *
8  *
9  * formatted with JxBeauty (c) johann.langhofer@nextra.at
10  */

11
12
13 package org.hamletsoft.enhydra.cactus;
14
15 import com.lutris.appserver.server.*;
16 import com.lutris.appserver.server.httpPresentation.*;
17 import com.lutris.appserver.server.session.*;
18 import com.lutris.util.*;
19
20
21 /**
22  * The application object.
23  *
24  * Application-wide data would go here.
25  */

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

32   public void startup (Config appConfig) throws ApplicationException {
33     super.startup(appConfig);
34     // Here is where you would read application-specific settings from
35
// your config file.
36
}
37
38   public boolean requestPreprocessor (HttpPresentationComms comms) 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>cactus</I>";
52   }
53 }
54
55
56
57
Popular Tags