Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.diagnostics.descriptor
Interface WLDFSMTPNotificationBean

All Superinterfaces:
WLDFBean, WLDFNotificationBean

public interface WLDFSMTPNotificationBean
extends WLDFNotificationBean

Use this interface to define a SMTP notification, which is sent when a diagnostic watch evaluates to true.

Access limited to the following security roles:
Deployer

Method Summary
 void addRecipient(String recipient)
          Adds a recipient to the list of e-mail addresses that will receive this notification.
 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 notification 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 notification.
 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.
 
Methods inherited from interface weblogic.diagnostics.descriptor.WLDFNotificationBean
isEnabled, setEnabled
 
Methods inherited from interface weblogic.diagnostics.descriptor.WLDFBean
getId, getName
 

Method Detail

getMailSessionJNDIName

String getMailSessionJNDIName()

The JNDI name of the mail session. This name must match the attribute in the corresponding MailSessionMBean.

Returns:
the JNDI name of the mail session

setMailSessionJNDIName

void setMailSessionJNDIName(String mailSessionJNDIName)

Sets the value of the MailSessionJNDIName attribute.

Parameters:
mailSessionJNDIName - the JNDI name of the mail session
See Also:
WLDFSMTPNotificationBean.getMailSessionJNDIName()
This method can NOT set a null value.
This method can NOT set a value of zero length.

getSubject

String getSubject()

The subject for the mail message. If the subject is not specified, a subject is created from the watch notification information.

Returns:
the subject for the mail message

setSubject

void setSubject(String subject)

Sets the value of the Subject attribute.

Parameters:
subject - the subject for the mail message
See Also:
WLDFSMTPNotificationBean.getSubject()

getBody

String getBody()

The body for the mail message. If the body is not specified, a body is created from the watch notification information.

Returns:
the body for the mail message

setBody

void setBody(String body)

Sets the value of the Body attribute.

Parameters:
body - the body for the mail message
See Also:
WLDFSMTPNotificationBean.getBody()

getRecipients

String[] getRecipients()

The address of the recipient or recipients of the SMTP notification 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.

Returns:
the recipient of the SMTP notification

setRecipients

void setRecipients(String[] recipients)

Sets the value of the Recipients attribute.

Parameters:
recipients -
See Also:
WLDFSMTPNotificationBean.getRecipients()

addRecipient

void addRecipient(String recipient)

Adds a recipient to the list of e-mail addresses that will receive this notification.

Parameters:
recipient -

removeRecipient

void removeRecipient(String recipient)

Removes a recipient from the list of e-mail addresses that will receive this notification.

Parameters:
recipient -

Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02