|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.mail.MailManagerImpl
public class MailManagerImpl
Default MailManager implementation.
Constructor Summary | |
---|---|
MailManagerImpl()
Default constructor. |
Method Summary | |
---|---|
void |
destroy()
Destroy this manager by destroying the member SessionManager and SMTPMailer. |
javax.mail.Session |
getSession()
Return a Session using the member SessionManager instance. |
SMTPMailer |
getSMTPMailer()
Return the member SMTPMailer instance. |
void |
init(java.lang.String name,
XMLProperties xmlProps)
Initialise this manager instance by creating a SessionManager and SMTPMailer instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailManagerImpl()
Method Detail |
---|
public void init(java.lang.String name, XMLProperties xmlProps) throws MailException
init
in interface MailManager
name
- String containing a name to identify this manager.xmlProps
- XML configuration properties.
MailException
- if the manager cannot be initialised.public SMTPMailer getSMTPMailer() throws MailException
getSMTPMailer
in interface MailManager
MailException
public javax.mail.Session getSession() throws MailException
getSession
in interface MailManager
MailException
public void destroy() throws MailException
destroy
in interface MailManager
MailException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |