com.funambol.email.inboxlistener.engine
Class MSTools

java.lang.Object
  extended bycom.funambol.email.inboxlistener.engine.MSTools

public class MSTools
extends java.lang.Object

This class groups some utility methods for Mail Server invoking


Constructor Summary
MSTools(MSAccount _msa, MailboxAccount _mba)
          Creates a new MSTools with the given MSAccount
 
Method Summary
 void closeConnection(IMailServerWrapper mswf)
          close the Mail Server connection; Note the IL Tool works only the INBOX folder
 javax.mail.Folder getInbox()
          return the inbox folder
 void openConnection(IMailServerWrapper mswf)
          open the Mail Server connection; Note the IL Tool works only the INBOX folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSTools

public MSTools(MSAccount _msa,
               MailboxAccount _mba)
Creates a new MSTools with the given MSAccount

Parameters:
_msa - the DBAccount
Method Detail

openConnection

public void openConnection(IMailServerWrapper mswf)
                    throws InboxListenerException
open the Mail Server connection; Note the IL Tool works only the INBOX folder

Parameters:
mswf - reference to the mail server wrapper IMailServerWrapper
Throws:
InboxListenerException

closeConnection

public void closeConnection(IMailServerWrapper mswf)
                     throws InboxListenerException
close the Mail Server connection; Note the IL Tool works only the INBOX folder

Parameters:
mswf - reference to the mail server wrapper IMailServerWrapper
Throws:
InboxListenerException

getInbox

public javax.mail.Folder getInbox()
return the inbox folder



Copyright © 2003-2006 Funambol.