|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.notification.Notifier
com.waveset.notification.EmailNotifier
An implementation of the Notifier class that sends email notifications. The expected parameters are:
Nested Class Summary | |
static class |
EmailNotifier.ByteArrayDataSource
A simple DataSource for sending various email type, specifically text/html, but others could work too.. |
static interface |
EmailNotifier.LocaleLocator
This class is used to lookup the Locale of a user with a given email address. |
Field Summary | |
static int |
_errorCount
The number of times the notify() method will throw a ServiceNotResponding exception before sending the mail. |
static java.lang.String |
BODY
|
static java.lang.String |
CC
|
static java.lang.String |
code_id
|
static java.lang.String |
CONTENT_CHARSET_DEFAULT
The default character set to use |
static java.lang.String |
CONTENT_CHARSET_SYSCFG
A setting to control the character set for encoding the email subject and body. |
static java.lang.String |
ENABLE_LOCALIZATION_SYSCFG
We don't localize messages based on the user's locale if this is set to false. |
static java.lang.String |
FROM
|
static java.lang.String |
FROM_ADDRESS
Deprecated. - use FROM |
static java.lang.String |
FROM_USER
Deprecated. - use FROM |
static java.lang.String |
LOCALE
|
static java.lang.String |
LOCALE_LOCATOR
|
static java.lang.String |
MIME_TYPE
|
static java.lang.String |
SMTP_HOST
|
static java.lang.String |
SUBJECT
|
static java.lang.String |
TEMPLATE
|
static java.lang.String |
TEST_RAW_EMAIL_FILE
|
static java.lang.String |
TEST_RESULT
|
static java.lang.String |
TO
|
static java.lang.String |
TO_ADDRESS
Deprecated. - use TO |
static java.lang.String |
TO_ADMIN
Deprecated. - use TO |
static java.lang.String |
TO_USER
Deprecated. - use TO |
Fields inherited from class com.waveset.notification.Notifier |
TYPE_EMAIL, TYPE_TEST |
Constructor Summary | |
EmailNotifier()
Construct an EmailNotifier object. |
Method Summary | |
WavesetResult |
notify(LighthouseContext context,
java.util.Map parameters,
VariableResolver resolver)
Notifier.notify method implementation. |
static void |
setErrorCount(int c)
|
Methods inherited from class com.waveset.notification.Notifier |
getFilterDomain, getNotificationFile, getNotifier, notify, setTestFile, setTestNotifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String TEMPLATE
public static final java.lang.String SMTP_HOST
public static final java.lang.String FROM_ADDRESS
public static final java.lang.String FROM_USER
public static final java.lang.String FROM
public static final java.lang.String TO_ADDRESS
public static final java.lang.String TO_USER
public static final java.lang.String TO_ADMIN
public static final java.lang.String TO
public static final java.lang.String CC
public static final java.lang.String SUBJECT
public static final java.lang.String BODY
public static final java.lang.String MIME_TYPE
public static final java.lang.String LOCALE_LOCATOR
public static final java.lang.String LOCALE
public static final java.lang.String TEST_RESULT
public static final java.lang.String TEST_RAW_EMAIL_FILE
public static final java.lang.String ENABLE_LOCALIZATION_SYSCFG
public static final java.lang.String CONTENT_CHARSET_SYSCFG
public static final java.lang.String CONTENT_CHARSET_DEFAULT
public static int _errorCount
Constructor Detail |
public EmailNotifier()
Method Detail |
public static void setErrorCount(int c)
public WavesetResult notify(LighthouseContext context, java.util.Map parameters, VariableResolver resolver) throws ServiceNotResponding, WavesetException
notify
in class Notifier
ServiceNotResponding
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |