org.jboss.soa.esb.notification
Class NotifyEmail
java.lang.Object
org.jboss.soa.esb.notification.NotificationTarget
org.jboss.soa.esb.notification.NotifyEmail
public class NotifyEmail
- extends NotificationTarget
This class will send an e-mail using the Email class
Description:
Author: Heuristica - Buenos Aires - Argentina
- Version:
- 1.0
|
Constructor Summary |
NotifyEmail(DomElement p_oP)
Instantiate a NotifyEmail object using the information contained in
<arg 1> |
|
Method Summary |
protected void |
sendEmailNotification(DomElement messageParams)
Send an email notification based on the supplied parameters. |
void |
sendNotification(java.io.Serializable p_o)
Send an Email using Email() using p_o.toString() to fill in the
message text |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotifyEmail
public NotifyEmail(DomElement p_oP)
throws java.lang.Exception
- Instantiate a NotifyEmail object using the information contained in
<arg 1>
- Parameters:
p_oP - DomElement - See attributes and structure needed for the
Email() constructor - The MESSAGE attribute will
be filled in at sendNotification(Serializable) time
- Throws:
java.lang.Exception- See Also:
sendNotification(Serializable)
sendNotification
public void sendNotification(java.io.Serializable p_o)
- Send an Email using Email() using p_o.toString() to fill in the
message text
- Specified by:
sendNotification in class NotificationTarget
- Parameters:
p_o - Object - This object's toString() method will supply contents
of mail message- See Also:
DomElement
sendEmailNotification
protected void sendEmailNotification(DomElement messageParams)
throws javax.mail.internet.AddressException,
javax.mail.MessagingException
- Send an email notification based on the supplied parameters.
This method allows overriding for test purposes.
- Parameters:
messageParams - Message parameters.
- Throws:
javax.mail.internet.AddressException
javax.mail.MessagingException