|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.slamd.server.SMTPMailer
This class provides a means of sending an e-mail message over SMTP as defined in RFC 821.
| Field Summary | |
static java.lang.String |
CONFIG_SUBSCRIBER_NAME
The name used to register the mailer as a subscriber to the configuration handler. |
| Constructor Summary | |
SMTPMailer(SLAMDServer slamdServer)
Creates a new instance of this SMTP mailer. |
|
| Method Summary | |
java.lang.String |
getServletBaseURI()
Retrieves the URL that can be used to access the admin interface. |
java.lang.String |
getSubscriberName()
Retrieves the name that the scheduler uses to subscribe to the configuration handler in order to be notified of configuration changes. |
ParameterList |
getSubscriberParameters()
Retrieves the set of configuration parameters associated with this configuration subscriber. |
boolean |
isEnabled()
Indicates whether this mailer is currently enabled. |
void |
refreshSubscriberConfiguration()
Re-reads all configuration information used by the SLAMD scheduler. |
void |
refreshSubscriberConfiguration(java.lang.String parameterName)
Re-reads the configuration information for the specified parameter. |
void |
sendMessage(java.lang.String[] recipients,
java.lang.String subject,
java.lang.String message)
Sends a mail message to all configured recipients to notify them that the specified critical event has occurred. |
| 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 CONFIG_SUBSCRIBER_NAME
| Constructor Detail |
public SMTPMailer(SLAMDServer slamdServer)
slamdServer - The SLAMD server instance with which this mailer is
associated.| Method Detail |
public boolean isEnabled()
true if this mailer is enabled, or false
if it is not.public java.lang.String getServletBaseURI()
public void sendMessage(java.lang.String[] recipients,
java.lang.String subject,
java.lang.String message)
recipients - The addresses of the recipients to which the message
should be sent.subject - The subject to use for the message.message - The body of the mail message to be sent.public java.lang.String getSubscriberName()
getSubscriberName in interface ConfigSubscriberpublic ParameterList getSubscriberParameters()
getSubscriberParameters in interface ConfigSubscriberpublic void refreshSubscriberConfiguration()
refreshSubscriberConfiguration in interface ConfigSubscriberpublic void refreshSubscriberConfiguration(java.lang.String parameterName)
refreshSubscriberConfiguration in interface ConfigSubscriberparameterName - The name of the parameter to re-read from the
configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||