com.funambol.email.transport
Class PopMailServerWrapper

java.lang.Object
  extended bycom.funambol.email.transport.CommonMailServerWrapper
      extended bycom.funambol.email.transport.PopMailServerWrapper
All Implemented Interfaces:
IMailServerWrapper

public class PopMailServerWrapper
extends CommonMailServerWrapper
implements IMailServerWrapper

Create a connection with a Mail Server


Field Summary
 
Fields inherited from class com.funambol.email.transport.CommonMailServerWrapper
locale, log, RESOURCE_NAME, session, store
 
Constructor Summary
PopMailServerWrapper()
           
 
Method Summary
 com.sun.mail.pop3.POP3Folder getInboxFolder()
           
 java.lang.String getInboxFolderName()
           
 void openConnection(java.lang.String outgoingServer, java.lang.String incomingServer, java.lang.String incomingPort, java.lang.String language, java.lang.String user, java.lang.String password, boolean isSSL)
          opens the connection with the mail server outgoingServer: 192.168.0.1 (SMTP) incomingServer: 192.168.0.1 (POP3) incomingPort: 110 / 995 POP3 def.
 void releaseConnection()
          closes the connection with the mail server
protected  void setConnectionNormal(java.util.Properties props, java.lang.String outgoingServer, java.lang.String incomingServer, java.lang.String incomingPort)
           
protected  void setConnectionSSL(java.util.Properties props, java.lang.String outgoingServer, java.lang.String incomingServer, java.lang.String incomingPort, com.sun.net.ssl.internal.ssl.Provider provider)
           
 
Methods inherited from class com.funambol.email.transport.CommonMailServerWrapper
checkUser, getLocale, getSession, getStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.funambol.email.transport.IMailServerWrapper
checkUser, getLocale, getSession, getStore
 

Constructor Detail

PopMailServerWrapper

public PopMailServerWrapper()
Method Detail

openConnection

public void openConnection(java.lang.String outgoingServer,
                           java.lang.String incomingServer,
                           java.lang.String incomingPort,
                           java.lang.String language,
                           java.lang.String user,
                           java.lang.String password,
                           boolean isSSL)
                    throws EmailAccessException
opens the connection with the mail server outgoingServer: 192.168.0.1 (SMTP) incomingServer: 192.168.0.1 (POP3) incomingPort: 110 / 995 POP3 def. language: en, it, fr, ... user password isSSL: true/false

Specified by:
openConnection in interface IMailServerWrapper
Specified by:
openConnection in class CommonMailServerWrapper
Parameters:
outgoingServer - String
incomingServer - String
incomingPort - String
language - String
user - String
password - String
isSSL - boolean
Throws:
EmailAccessException

releaseConnection

public void releaseConnection()
                       throws EmailAccessException
closes the connection with the mail server

Specified by:
releaseConnection in interface IMailServerWrapper
Specified by:
releaseConnection in class CommonMailServerWrapper
Throws:
EmailAccessException

getInboxFolder

public com.sun.mail.pop3.POP3Folder getInboxFolder()
Returns:
Inbox Folder POP3Folder

getInboxFolderName

public java.lang.String getInboxFolderName()
Returns:
String

setConnectionSSL

protected void setConnectionSSL(java.util.Properties props,
                                java.lang.String outgoingServer,
                                java.lang.String incomingServer,
                                java.lang.String incomingPort,
                                com.sun.net.ssl.internal.ssl.Provider provider)
Specified by:
setConnectionSSL in class CommonMailServerWrapper
Parameters:
props - Properties
outgoingServer - String
incomingServer - String
incomingPort - String
provider - Provider

setConnectionNormal

protected void setConnectionNormal(java.util.Properties props,
                                   java.lang.String outgoingServer,
                                   java.lang.String incomingServer,
                                   java.lang.String incomingPort)
Specified by:
setConnectionNormal in class CommonMailServerWrapper
Parameters:
props - Properties
outgoingServer - String
incomingServer - String
incomingPort - String


Copyright © 2003-2006 Funambol.