public interface WLDFSMTPNotificationBean extends WLDFNotificationBean
Use this interface to define a SMTP action, which is sent
when a diagnostic policy evaluates to true.
Note: As of WebLogic Server 12.2.1, the terms watch and notification are replaced by policy and action, respectively. However, the definition of these terms has not changed.
| Modifier and Type | Method and Description |
|---|---|
void |
addRecipient(String recipient)
Adds a recipient to the list of e-mail addresses that will
receive this action.
|
String |
getBody()
The body for the mail message.
|
String |
getMailSessionJNDIName()
The JNDI name of the mail session.
|
String[] |
getRecipients()
The address of the recipient or recipients of the SMTP
action mail.
|
String |
getSubject()
The subject for the mail message.
|
void |
removeRecipient(String recipient)
Removes a recipient from the list of e-mail addresses that will
receive this action.
|
void |
setBody(String body)
Sets the value of the Body attribute.
|
void |
setMailSessionJNDIName(String mailSessionJNDIName)
Sets the value of the MailSessionJNDIName attribute.
|
void |
setRecipients(String[] recipients)
Sets the value of the Recipients attribute.
|
void |
setSubject(String subject)
Sets the value of the Subject attribute.
|
getTimeout, isEnabled, setEnabled, setTimeoutString getMailSessionJNDIName()
The JNDI name of the mail session. This name must match the attribute in the corresponding MailSessionMBean.
void setMailSessionJNDIName(String mailSessionJNDIName)
Sets the value of the MailSessionJNDIName attribute.
mailSessionJNDIName - the JNDI name of the mail sessionWLDFSMTPNotificationBean.getMailSessionJNDIName()String getSubject()
The subject for the mail message. If the subject is not specified, a subject is created from the action information.
void setSubject(String subject)
Sets the value of the Subject attribute.
subject - the subject for the mail messageWLDFSMTPNotificationBean.getSubject()String getBody()
The body for the mail message. If the body is not specified, a body is created from the action information.
void setBody(String body)
Sets the value of the Body attribute.
body - the body for the mail messageWLDFSMTPNotificationBean.getBody()String[] getRecipients()
The address of the recipient or recipients of the SMTP
action mail. The address uses the syntax defined in RFC822.
Typical address syntax is of the form
user@host.domain or
Personal Name.
An address can include multiple recipients, separated by commas
or spaces.
For more information, refer to the javax.mail.internet.InternetAddress.parse method.
void setRecipients(String[] recipients)
Sets the value of the Recipients attribute.
recipients - WLDFSMTPNotificationBean.getRecipients()void addRecipient(String recipient)
Adds a recipient to the list of e-mail addresses that will receive this action.
recipient - void removeRecipient(String recipient)
Removes a recipient from the list of e-mail addresses that will receive this action.
recipient -