SettableBean, WLDFBean, WLDFNotificationBeanpublic 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 | Description |
|---|---|---|
void |
addRecipient(java.lang.String recipient) |
Adds a recipient to the list of e-mail addresses that will
receive this action.
|
java.lang.String |
getBody() |
The body for the mail message.
|
java.lang.String |
getMailSessionJNDIName() |
The JNDI name of the mail session.
|
java.lang.String[] |
getRecipients() |
The address of the recipient or recipients of the SMTP
action mail.
|
java.lang.String |
getSubject() |
The subject for the mail message.
|
void |
removeRecipient(java.lang.String recipient) |
Removes a recipient from the list of e-mail addresses that will
receive this action.
|
void |
setBody(java.lang.String body) |
Sets the value of the Body attribute.
|
void |
setMailSessionJNDIName(java.lang.String mailSessionJNDIName) |
Sets the value of the MailSessionJNDIName attribute.
|
void |
setRecipients(java.lang.String[] recipients) |
Sets the value of the Recipients attribute.
|
void |
setSubject(java.lang.String subject) |
Sets the value of the Subject attribute.
|
getTimeout, isEnabled, setEnabled, setTimeoutjava.lang.String getMailSessionJNDIName()
The JNDI name of the mail session. This name must match the attribute in the corresponding MailSessionMBean.
void setMailSessionJNDIName(java.lang.String mailSessionJNDIName)
Sets the value of the MailSessionJNDIName attribute.
mailSessionJNDIName - the JNDI name of the mail sessiongetMailSessionJNDIName()java.lang.String getSubject()
The subject for the mail message. If the subject is not specified, a subject is created from the action information.
void setSubject(java.lang.String subject)
Sets the value of the Subject attribute.
subject - the subject for the mail messagegetSubject()java.lang.String getBody()
The body for the mail message. If the body is not specified, a body is created from the action information.
void setBody(java.lang.String body)
Sets the value of the Body attribute.
body - the body for the mail messagegetBody()java.lang.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(java.lang.String[] recipients)
Sets the value of the Recipients attribute.
recipients - getRecipients()void addRecipient(java.lang.String recipient)
Adds a recipient to the list of e-mail addresses that will receive this action.
recipient - void removeRecipient(java.lang.String recipient)
Removes a recipient from the list of e-mail addresses that will receive this action.
recipient -