Package dk.netarkivet.common.utils
Class EMailNotifications
- java.lang.Object
-
- dk.netarkivet.common.utils.Notifications
-
- dk.netarkivet.common.utils.EMailNotifications
-
public class EMailNotifications extends Notifications
Delivers NetarchiveSuite notifications by email.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAIL_RECEIVER_SETTING
settings.common.notifications.receiver:
The setting for the receiver of email notifications.static java.lang.String
MAIL_SENDER_SETTING
settings.common.notifications.sender:
The setting for the sender of email notifications (and receiver of bounces).static java.lang.String
MAIL_SUBJECTPREFIX_SETTING
settings.common.notifications.subjectPrefix:
The subject prefix for the mail-notifications.
-
Constructor Summary
Constructors Constructor Description EMailNotifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notify(java.lang.String message, NotificationType eventType, java.lang.Throwable e)
Sends a notification including an exception.-
Methods inherited from class dk.netarkivet.common.utils.Notifications
notify
-
-
-
-
Field Detail
-
MAIL_RECEIVER_SETTING
public static java.lang.String MAIL_RECEIVER_SETTING
settings.common.notifications.receiver:
The setting for the receiver of email notifications.
-
MAIL_SENDER_SETTING
public static java.lang.String MAIL_SENDER_SETTING
settings.common.notifications.sender:
The setting for the sender of email notifications (and receiver of bounces).
-
MAIL_SUBJECTPREFIX_SETTING
public static java.lang.String MAIL_SUBJECTPREFIX_SETTING
settings.common.notifications.subjectPrefix:
The subject prefix for the mail-notifications.
-
-
Constructor Detail
-
EMailNotifications
public EMailNotifications()
-
-
Method Detail
-
notify
public void notify(java.lang.String message, NotificationType eventType, java.lang.Throwable e)
Sends a notification including an exception.- Specified by:
notify
in classNotifications
- Parameters:
message
- The message to notify about.eventType
- The type of notificatione
- The exception to notify about.
-
-