toolbox.services.mail.simple
Class SimpleMailServiceImpl

Package class diagram package SimpleMailServiceImpl
java.lang.Object
  extended by toolbox.services.BaseService
      extended by toolbox.services.mail.MailService
          extended by toolbox.services.mail.simple.SimpleMailServiceImpl
All Implemented Interfaces:
SimpleMailService, Service

public class SimpleMailServiceImpl
extends MailService
implements SimpleMailService

Default implementation of the SimpleMailService interface.


Constructor Summary
SimpleMailServiceImpl()
          Default constructor.
 
Method Summary
 void sendMailMessage(MailMessage message, DeliveryControl control)
          Send the given e-mail message.
 
Methods inherited from class toolbox.services.mail.MailService
create, getMailManager, getSMTPMailer
 
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

SimpleMailServiceImpl

public SimpleMailServiceImpl()
Default constructor.

Method Detail

sendMailMessage

public void sendMailMessage(MailMessage message,
                            DeliveryControl control)
                     throws SimpleMailException
Send the given e-mail message.

Specified by:
sendMailMessage in interface SimpleMailService
Parameters:
message - MailMessage to send.
control - DeliveryControl instance to control delivery behaviour.
Throws:
SimpleMailException - if the mail cannot be delivered.