public abstract class BaseEmailNotifier extends java.lang.Object implements Notifier
Initialization parameters for this notifier are as follows:
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BaseEmailNotifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(javax.servlet.FilterConfig config)
Will configure the Notifier directly from a Servlet Filter configuration.
|
void |
configure(javax.servlet.ServletConfig config)
Will configure the Notifier directly from a Servlet configuration.
|
void |
configure(java.lang.String namePrefix,
java.util.Properties config)
Will configure the Notifier from a properties configufation
|
java.util.Set<java.lang.String> |
getAllowedServerSet() |
java.lang.String |
getFromEmailAddress() |
java.lang.String |
getMailServerHost() |
java.lang.String |
getToEmailAddress() |
boolean |
isSuppressEmail() |
void |
setAllowedServerSet(java.util.Set<java.lang.String> allowedServerSet) |
void |
setFromEmailAddress(java.lang.String fromEmailAddress) |
void |
setMailServerHost(java.lang.String mailServerHost) |
void |
setSuppressEmail(boolean suppressEmail) |
void |
setToEmailAddress(java.lang.String toEmailAddress) |
boolean |
supportsHtml()
Indicates if this notifier supports HTML-formatted messages.
|
boolean |
supportsSMS()
Indicates if this notifier support SMS, which usually infers a restricted
message size.
|
public boolean supportsHtml()
NotifiersupportsHtml in interface Notifierpublic void configure(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
Configurableconfigure in interface Configurablejavax.servlet.ServletExceptionpublic void configure(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
Configurableconfigure in interface Configurablejavax.servlet.ServletExceptionpublic void configure(java.lang.String namePrefix,
java.util.Properties config)
Configurableconfigure in interface Configurablepublic java.util.Set<java.lang.String> getAllowedServerSet()
public void setAllowedServerSet(java.util.Set<java.lang.String> allowedServerSet)
public java.lang.String getFromEmailAddress()
public void setFromEmailAddress(java.lang.String fromEmailAddress)
public java.lang.String getMailServerHost()
public void setMailServerHost(java.lang.String mailServerHost)
public boolean isSuppressEmail()
public void setSuppressEmail(boolean suppressEmail)
public java.lang.String getToEmailAddress()
public void setToEmailAddress(java.lang.String toEmailAddress)
public boolean supportsSMS()
NotifiersupportsSMS in interface NotifierCopyright © 2015 The Admin4J Project. All Rights Reserved.