|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.BaseService toolbox.services.mail.MailService
public class MailService
Convenience service implementation that can be used to develop services that require interaction with an Internet Mail server.
Constructor Summary | |
---|---|
protected |
MailService()
Default constructor. |
Method Summary | |
---|---|
void |
create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
Create the service by obtaining a reference to the MailManager instance of the given environment. |
protected MailManager |
getMailManager()
Return the MailManager for this service. |
protected SMTPMailer |
getSMTPMailer()
Return the SMTPMailer instance for this service. |
Methods inherited from class toolbox.services.BaseService |
---|
destroy, getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MailService()
Method Detail |
---|
public void create(java.lang.String name, java.lang.String confHome, ServiceEnvironment env, XMLProperties xmlProps) throws ServiceException
create
in interface Service
create
in class BaseService
name
- The name of this service.confHome
- The path to the configuration home directory.env
- The service environment for this service.xmlProps
- XML configuration properties.
ServiceException
- if this service cannot be created.protected MailManager getMailManager()
protected SMTPMailer getSMTPMailer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |