org.openmrs.notification.mail
Class MailMessageSender

java.lang.Object
  extended by org.openmrs.notification.mail.MailMessageSender
All Implemented Interfaces:
MessageSender

public class MailMessageSender
extends java.lang.Object
implements MessageSender


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
MailMessageSender()
          Default public constructor.
MailMessageSender(javax.mail.Session session)
          Public constructor.
 
Method Summary
 javax.mail.internet.MimeMessage createMimeMessage(Message message)
          Converts the message object to a mime message in order to prepare it to be sent.
 void send(Message message)
          Send the message.
 void setMailSession(javax.mail.Session session)
          Set javamail session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

MailMessageSender

public MailMessageSender()
Default public constructor.


MailMessageSender

public MailMessageSender(javax.mail.Session session)
Public constructor.

Parameters:
session -
Method Detail

setMailSession

public void setMailSession(javax.mail.Session session)
Set javamail session.

Parameters:
session -

send

public void send(Message message)
          throws MessageException
Send the message.

Specified by:
send in interface MessageSender
Parameters:
message - the message to be sent
Throws:
MessageException

createMimeMessage

public javax.mail.internet.MimeMessage createMimeMessage(Message message)
                                                  throws java.lang.Exception
Converts the message object to a mime message in order to prepare it to be sent.

Parameters:
message -
Returns:
MimeMessage
Throws:
java.lang.Exception

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change