KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > presentation > help


1 /*
2  * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
3  * Reserved.
4  *
5  * This source code file is distributed by Lutris Technologies, Inc. for
6  * use only by licensed users of product(s) that include this source
7  * file. Use of this source file or the software that uses it is covered
8  * by the terms and conditions of the Lutris Enhydra Development License
9  * Agreement included with this product.
10  *
11  * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12  * ANY KIND, either express or implied. See the License for the specific terms
13  * governing rights and limitations under the License.
14  *
15  * Contributor(s):
16  *
17  * $Id: help.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $
18  */

19
20 package com.lutris.airsent.presentation;
21
22 import com.lutris.appserver.server.httpPresentation.*;
23 import com.lutris.appserver.server.session.*;
24 import com.lutris.util.*;
25 import org.enhydra.xml.xmlc.XMLObject;
26 import org.w3c.dom.*;
27 import org.w3c.dom.html.*;
28 import java.util.Date JavaDoc;
29 import com.lutris.airsent.presentation.BasePO;
30
31 /**
32  * Login.java handles the login functionality of the DiscRack app.
33  *
34  * @author
35  * @version
36  */

37 public class help extends BasePO {
38
39     /**
40      * Constants
41      */

42     private static final int AUTH_LEVEL = AirSentConstants.UNAUTH_USER;
43
44     /**
45      * Superclass method override.
46      * returns the authorization level necessary to access this po.
47      *
48      * @return int required authorization level
49      */

50     public int getRequiredAuthLevel() {
51     return AUTH_LEVEL;
52     }
53
54     /**
55      * Default event. Just show the page.
56      */

57     public XMLObject handleDefault() throws HttpPresentationException {
58     return showPage(null);
59     }
60
61     /**
62      * handle throw exception event.
63      *
64      * @return html document
65      * @exception Exception
66      */

67     public XMLObject handleThrowException() throws Exception JavaDoc {
68     throw new Exception JavaDoc("This is a test exception thrown from Login.java handleThrowException()");
69     }
70
71     /**
72      * display page
73      *
74      * @param errorMsg, the error messages
75      * @return html document
76      */

77     public XMLObject showPage(String JavaDoc errorMsg)
78         throws AirSentPresentationException {
79     helpHTML page =
80         (helpHTML) getComms().xmlcFactory.create(helpHTML.class);
81
82         return page;
83     }
84
85 }
86
87
Popular Tags