public class NotificationProducer extends Object implements org.nhindirect.stagent.mail.notifications.NotificationCreator
| Constructor and Description |
|---|
NotificationProducer(NotificationSettings settings)
Constructs a producer with the notification settings.
|
| Modifier and Type | Method and Description |
|---|---|
org.nhindirect.stagent.mail.notifications.Notification |
createNotification(javax.mail.internet.InternetAddress address)
Creates an ack MDN.
|
NotificationSettings |
getNotificationSettings()
Gets the notification settings for the producer.
|
Collection<org.nhindirect.stagent.mail.notifications.NotificationMessage> |
produce(org.nhindirect.stagent.IncomingMessage envelope)
Produces an ack MDN message for the incoming message.
|
Collection<org.nhindirect.stagent.mail.notifications.NotificationMessage> |
produce(org.nhindirect.stagent.mail.Message msg,
Collection<javax.mail.internet.InternetAddress> recipients) |
public NotificationProducer(NotificationSettings settings)
settings - The notification configuration settings.public org.nhindirect.stagent.mail.notifications.Notification createNotification(javax.mail.internet.InternetAddress address)
createNotification in interface org.nhindirect.stagent.mail.notifications.NotificationCreatorpublic Collection<org.nhindirect.stagent.mail.notifications.NotificationMessage> produce(org.nhindirect.stagent.IncomingMessage envelope)
envelope - The incoming message that will have an MDN ack message sent to the senders.public Collection<org.nhindirect.stagent.mail.notifications.NotificationMessage> produce(org.nhindirect.stagent.mail.Message msg, Collection<javax.mail.internet.InternetAddress> recipients)
public NotificationSettings getNotificationSettings()
Copyright © 2010–2021 NHIN Direct. All rights reserved.