KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > presentation > enhydrapim > Logout


1 /*
2  * Created on May 6, 2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package org.enhydra.pim.presentation.enhydrapim;
8
9 import org.enhydra.pim.presentation.BasePO;
10 import org.enhydra.xml.xmlc.XMLObject;
11
12 import com.lutris.appserver.server.httpPresentation.HttpPresentationException;
13
14 /**
15  * @author P.Djojic May 6, 2005 1:26:28 AM
16  *
17  * TODO Logout
18  */

19 public class Logout extends BasePO {
20
21
22     public XMLObject handleDefault() throws HttpPresentationException {
23         this.removeUserFromSession();
24         return (LogoutHTML) myComms.xmlcFactory.create(LogoutHTML.class);
25     }
26
27     /**
28      * handle logout event
29      *
30      * @return html document
31      * @exception HttpPresentationException
32      */

33     public XMLObject handleLogout() throws HttpPresentationException {
34         this.removeUserFromSession();
35         return (LogoutHTML) myComms.xmlcFactory.create(LogoutHTML.class);
36     }
37     
38     
39     protected boolean loggedInUserRequired() {
40         return true;
41     }
42
43 }
44
Popular Tags