net.jetrix.mail
Class MailSessionManager

java.lang.Object
  extended by net.jetrix.mail.MailSessionManager

public final class MailSessionManager
extends Object

Singleton holding the session to send mails.

Since:
0.3
Version:
$Revision: 800 $, $Date: 2009-02-18 19:26:28 +0100 (Wed, 18 Feb 2009) $
Author:
Emmanuel Bourg

Method Summary
 boolean checkSession()
          Check if the mail session is working properly.
static MailSessionManager getInstance()
           
 javax.mail.Session getSession()
           
 void setConfiguration(MailSessionConfig config)
          Initialize the mail session from the specified configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MailSessionManager getInstance()

getSession

public javax.mail.Session getSession()

setConfiguration

public void setConfiguration(MailSessionConfig config)
Initialize the mail session from the specified configuration.


checkSession

public boolean checkSession()
Check if the mail session is working properly.



Copyright © 2001-2010. All Rights Reserved.