|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.mail.SessionManagerMailConfigImpl
public class SessionManagerMailConfigImpl
SessionManager implementation that utilises the
toolbox.allegato.MailConfig
class to obtain a reference to
javax.mail.Session
instance.
Constructor Summary | |
---|---|
SessionManagerMailConfigImpl()
Default constructor |
Method Summary | |
---|---|
void |
destroy()
Destroy this manager. |
javax.mail.Session |
getSession()
Return a JavaMail Session instance. |
void |
init(XMLProperties xmlProps)
Initialise this SessionManager with the given XML configuration properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionManagerMailConfigImpl()
Method Detail |
---|
public void init(XMLProperties xmlProps) throws MailException
init
in interface SessionManager
xmlProps
- XML configuration properties.
MailException
- if the SessionManager cannot be initialised.public javax.mail.Session getSession() throws MailException
getSession
in interface SessionManager
MailException
- if a Session cannot be returned.public void destroy() throws MailException
destroy
in interface SessionManager
MailException
- if the manager cannot be destroyed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |