| java.lang.Object com.knowgate.hipermail.SessionHandler
SessionHandler | public class SessionHandler (Code) | | A wrapper around javax.mail.Store and javax.mail.Transport
author: Sergio Montoro Ten version: 1.0 |
SessionHandler | public SessionHandler()(Code) | | Default constructor
|
SessionHandler | public SessionHandler(MailAccount oAccount)(Code) | | Create instance taking data from a MailAccount
The data of MailAccount stored at k_user_mail table is used for initializing
the connection properties
Parameters: oAccount - MailAccount |
SessionHandler | public SessionHandler(MailAccount oAccount, String sMBoxDirectory)(Code) | | Create instance taking data from a MailAccount and set local directory for MBOX files
Parameters: oAccount - MailAccount Parameters: sMBoxDirectory - String |
close | public void close() throws MessagingException(Code) | | |
getAccountName | public String getAccountName()(Code) | | Get column incoming_account of k_user_mail
String account name or null if this instance has not beeninitialized from a MailAccount object |
getAuthStr | public String getAuthStr()(Code) | | Get column incoming_password of k_user_mail
String password or null if this instance has not beeninitialized from a MailAccount object |
getFolder | public Folder getFolder(String sFolderName) throws NoSuchProviderException, MessagingException(Code) | | |
getHostName | public String getHostName()(Code) | | Get column incoming_server of k_user_mail
String |
getSession | public Session getSession() throws IllegalStateException(Code) | | Get incoming mail server Session
This method calls JavaMail Session.getInstance() method if neccesary,
using properties currently set at this instance and SilentAuthenticator as
Authenticator subclass
javax.mail.Session throws: IllegalStateException - throws: NullPointerException - |
getSmtpSession | public Session getSmtpSession() throws IllegalStateException(Code) | | Get outgoing mail server Session
This method calls JavaMail Session.getInstance() method if neccesary,
using properties currently set at this instance and SilentAuthenticator as
Authenticator subclass
javax.mail.Session throws: IllegalStateException - throws: NullPointerException - |
getStore | public Store getStore() throws NoSuchProviderException, MessagingException(Code) | | Get Store
This method calls Session.getStore() and Store.connect() if neccesary.
javax.mail.Store throws: NoSuchProviderException - throws: MessagingException - |
getTransport | public Transport getTransport() throws NoSuchProviderException, MessagingException(Code) | | Get Transport
This method calls Session.getTransport() and Transport.connect() if neccesary
javax.mail.Transport throws: NoSuchProviderException - throws: MessagingException - |
getURL | public URLName getURL()(Code) | | |
isStoreConnected | public boolean isStoreConnected()(Code) | | |
isTransportConnected | public boolean isTransportConnected()(Code) | | |
sendMessage | public void sendMessage(Message oMsg) throws NoSuchProviderException, SendFailedException, ParseException, MessagingException, NullPointerException(Code) | | |
sendMessage | public void sendMessage(Message oMsg, Address[] aAddrs) throws NoSuchProviderException, SendFailedException, ParseException, MessagingException, NullPointerException(Code) | | |
sendMessage | public void sendMessage(Message oMsg, Address[] aAdrFrom, Address[] aAdrReply, Address[] aAdrTo, Address[] aAdrCc, Address[] aAdrBcc) throws NoSuchProviderException, SendFailedException, ParseException, MessagingException, NullPointerException(Code) | | |
setAccountName | public void setAccountName(String aAccName)(Code) | | |
setMBoxDirectory | public void setMBoxDirectory(String sDir)(Code) | | |
|
|