1 32 33 package scioworks.imap.presentation.imapWeb; 34 35 import javax.mail.*; 36 import javax.activation.*; 37 38 import com.lutris.appserver.server.httpPresentation.*; 39 40 import scioworks.imap.presentation.base.*; 41 import scioworks.imap.presentation.imapWeb.*; 42 43 public class logout extends BasePO { 44 protected boolean isLoginRequired() { 46 return false; 47 } 48 49 public String handleDefault() 50 throws HttpPresentationException { 51 52 try { 53 super.getImapWebSessionData().getImapStore().close(); 54 55 } catch(NullPointerException ex) { 56 } catch (MessagingException e) { 57 e.printStackTrace(); 58 return super.showErrorPage("Error closing message store", e.getMessage(), 59 "", ""); 60 } 61 62 logoutHTML page = (logoutHTML)m_comms.xmlcFactory.create(logoutHTML.class); 63 64 return page.toDocument(); 65 } 66 } | Popular Tags |