net.sf.hajavamail
Class SimpleSenderStrategy

java.lang.Object
  extended by net.sf.hajavamail.SimpleSenderStrategy
All Implemented Interfaces:
SenderStrategy
Direct Known Subclasses:
GroupingSenderStrategy

public class SimpleSenderStrategy
extends Object
implements SenderStrategy

A simple pass-through sender strategy implementation.

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Paul Ferraro

Constructor Summary
SimpleSenderStrategy()
           
 
Method Summary
 void send(Sender sender, Message message, Address[] addresses)
          Send the specified message to the specified addresses using the specified sender.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSenderStrategy

public SimpleSenderStrategy()
Method Detail

send

public void send(Sender sender,
                 Message message,
                 Address[] addresses)
          throws MessagingException
Description copied from interface: SenderStrategy
Send the specified message to the specified addresses using the specified sender.

Specified by:
send in interface SenderStrategy
Parameters:
sender - object responsible for actually sending the message.
message - JavaMail message to send
addresses - an array of Addresses to which to sending the message
Throws:
MessagingException - if message cannot be sent
See Also:
SenderStrategy.send(net.sf.hajavamail.Sender, javax.mail.Message, javax.mail.Address[])