public class EmailPlugin extends Object implements ActionPluginListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FROM |
static String |
DEFAULT_FROM_NAME |
static String |
DEFAULT_FROM_NAME_PROPERTY |
static String |
DEFAULT_FROM_PROPERTY |
static String |
DEFAULT_HAWKULAR_BASE_URL |
static String |
DEFAULT_MAIL_SMTP_HOST |
static String |
DEFAULT_MAIL_SMTP_PORT |
static String |
HAWKULAR_ALERTS_TEMPLATES |
static String |
HAWKULAR_ALERTS_TEMPLATES_PROPERY |
static String |
HAWKULAR_BASE_URL |
static String |
IN_REPLY_TO |
static String |
MAIL_SESSION_OFFLINE
This property is used for testing porpuses.
|
static String |
MESSAGE_ID |
static String |
PLUGIN_NAME |
static String |
PROP_CC
"cc" property defines the extra recipients of the plugin email.
|
static String |
PROP_FROM
"from" property defines the sender of the plugin email.
|
static String |
PROP_FROM_NAME
"from-name" property defines the name of the sender of the plugin email.
|
static String |
PROP_MAIL
"mail" property is used as main prefix for javax.mail.Session properties.
|
static String |
PROP_TEMPLATE_HAWKULAR_URL
"template.hawkular.url" property defines the URL that will be used in the template email to point to hawkular
server.
|
static String |
PROP_TEMPLATE_HTML
"template.html" property defines the template used for html email.
|
static String |
PROP_TEMPLATE_LOCALE
Email plugin supports localization templates.
|
static String |
PROP_TEMPLATE_PLAIN
"template.plain" property defines the template used for plain text email.
|
static String |
PROP_TO
"to" property defines the recipient of the plugin email.
|
| Constructor and Description |
|---|
EmailPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.mail.Message |
createMimeMessage(ActionMessage msg) |
Map<String,String> |
getDefaultProperties() |
Set<String> |
getProperties() |
void |
process(ActionMessage msg) |
void |
setSender(ActionPluginSender sender) |
public static final String PLUGIN_NAME
public static final String MAIL_SESSION_OFFLINE
public static final String MESSAGE_ID
public static final String IN_REPLY_TO
public static final String DEFAULT_MAIL_SMTP_HOST
public static final String DEFAULT_MAIL_SMTP_PORT
public static final String DEFAULT_FROM_PROPERTY
public static final String DEFAULT_FROM
public static final String DEFAULT_FROM_NAME_PROPERTY
public static final String DEFAULT_FROM_NAME
public static final String HAWKULAR_BASE_URL
public static final String DEFAULT_HAWKULAR_BASE_URL
public static final String HAWKULAR_ALERTS_TEMPLATES
public static final String HAWKULAR_ALERTS_TEMPLATES_PROPERY
public static final String PROP_MAIL
public static final String PROP_FROM
public static final String PROP_FROM_NAME
public static final String PROP_TO
public static final String PROP_CC
public static final String PROP_TEMPLATE_HAWKULAR_URL
public static final String PROP_TEMPLATE_LOCALE
public static final String PROP_TEMPLATE_PLAIN
PluginMessageDescription class.public static final String PROP_TEMPLATE_HTML
PluginMessageDescription class.public void setSender(ActionPluginSender sender)
public Set<String> getProperties()
getProperties in interface ActionPluginListenerpublic Map<String,String> getDefaultProperties()
getDefaultProperties in interface ActionPluginListenerpublic void process(ActionMessage msg) throws Exception
process in interface ActionPluginListenerExceptionprotected javax.mail.Message createMimeMessage(ActionMessage msg) throws Exception
ExceptionCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.