<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.7.0) on Thu Jan 10 16:02:49 EST 2008 --> <TITLE> SMTP (MX4J API) </TITLE> <META NAME="date" CONTENT="2008-01-10"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="SMTP (MX4J API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SMTP.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mx4j/tools/mail/SMTP.html" target="_top"><B>FRAMES</B></A> <A HREF="SMTP.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> mx4j.tools.mail</FONT> <BR> Class SMTP</H2> <PRE> java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>mx4j.tools.mail.SMTP</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener, <A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></DD> </DL> <HR> <DL> <DT><PRE>public class <B>SMTP</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A>, javax.management.NotificationListener, javax.management.MBeanRegistration</DL> </PRE> <P> This MBean is meant to send a mail given certain situation. It may be used to listen to a monitor or timer and send a mail. <p/> To use it you need to add to your classpath the mail.jar from the JavaMail API and the activation.jar from the Java Activation Framework. <p/> Besides you need to configure all the required fields, at least the serverHost and To fields and if your server requires login also the serverUsername and serverPassword fields <p/> The subject and content fields are subject to keyword expansions, i.e. some keyworks put between $ signs will be exapnded this can be used to give a more informative message. The current available expansions are <p/> $date$ -> Current date formatted with locale format $time$ -> Current tim formatted with locale format $datetime$ -> Current date and time formatted with locale format $notification$ -> Notification type $observed$ -> ObjectName of the observed object $objectname$ -> This MBean's objectname <P> <P> <DL> <DT><B>Version:</B></DT> <DD>$Revision: 1.7 $</DD> </DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#SMTP()">SMTP</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getBCC()">getBCC</A></B>()</CODE> <BR> Gets a comma separated list of addresses set in the BCC field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getCC()">getCC</A></B>()</CODE> <BR> Gets a comma separated list of addresses set in the CC field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getContent()">getContent</A></B>()</CODE> <BR> Returns the content of the mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getFromAddress()">getFromAddress</A></B>()</CODE> <BR> Gets the from address attached to mails</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getFromName()">getFromName</A></B>()</CODE> <BR> Gets the from name presented on the mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getMimeType()">getMimeType</A></B>()</CODE> <BR> Gets the MIME type set to the mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getNotificationName()">getNotificationName</A></B>()</CODE> <BR> Returns the notification which will trigger the mail sending</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> javax.management.ObjectName</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getObservedObject()">getObservedObject</A></B>()</CODE> <BR> Gets the MBean's objectname which is being listened</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getServerHost()">getServerHost</A></B>()</CODE> <BR> Gets the server's host as name or IP</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getServerPort()">getServerPort</A></B>()</CODE> <BR> Gets the server's port, by default is 25</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getServerUsername()">getServerUsername</A></B>()</CODE> <BR> Gets the username to log to the server</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getSubject()">getSubject</A></B>()</CODE> <BR> Gets the mail subject</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getTimeout()">getTimeout</A></B>()</CODE> <BR> Returns the timeout used when sending mails</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#getTo()">getTo</A></B>()</CODE> <BR> Gets a comma separated list of addresses set in the TO field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#handleNotification(javax.management.Notification, java.lang.Object)">handleNotification</A></B>(javax.management.Notification notification, java.lang.Object handback)</CODE> <BR> Called when a notification occurs.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#isLoginToServer()">isLoginToServer</A></B>()</CODE> <BR> Indicates whether login to the SMTP server will be attpemted</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#postDeregister()">postDeregister</A></B>()</CODE> <BR> Callback called just after the MBean has been successfully unregistered.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#postRegister(java.lang.Boolean)">postRegister</A></B>(java.lang.Boolean registrationDone)</CODE> <BR> Callback called just after the MBean has been registered (successfully or not).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#preDeregister()">preDeregister</A></B>()</CODE> <BR> Callback called just before MBean unregistration from the MBeanServer.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> javax.management.ObjectName</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)">preRegister</A></B>(javax.management.MBeanServer server, javax.management.ObjectName name)</CODE> <BR> Gathers some basic data</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#registerListener()">registerListener</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#sendMail()">sendMail</A></B>()</CODE> <BR> This will directly execute the send mail.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setBCC(java.lang.String)">setBCC</A></B>(java.lang.String bccAddresses)</CODE> <BR> Sets a comma separated list of address which will go in the BCC mail field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setCC(java.lang.String)">setCC</A></B>(java.lang.String ccAddresses)</CODE> <BR> Sets a comma separated list of address which will go in the CC mail field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setContent(java.lang.String)">setContent</A></B>(java.lang.String content)</CODE> <BR> Sets the content of the mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setFromAddress(java.lang.String)">setFromAddress</A></B>(java.lang.String fromAddress)</CODE> <BR> Sets the form address set to mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setFromName(java.lang.String)">setFromName</A></B>(java.lang.String fromName)</CODE> <BR> Sets the from name presented on the mail</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setLoginToServer(boolean)">setLoginToServer</A></B>(boolean login)</CODE> <BR> Sets whether to login to the SMTP server</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setMimeType(java.lang.String)">setMimeType</A></B>(java.lang.String mimeType)</CODE> <BR> Sets the MIME type, by default it is text/plain</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setNotificationName(java.lang.String)">setNotificationName</A></B>(java.lang.String notificationName)</CODE> <BR> Sets the notification name which will trigger the mail sending.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setObservedObject(javax.management.ObjectName)">setObservedObject</A></B>(javax.management.ObjectName targetMBeanName)</CODE> <BR> Sets the observed object.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setServerHost(java.lang.String)">setServerHost</A></B>(java.lang.String host)</CODE> <BR> Sets the server's host, it can be set as name or IP</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setServerPassword(java.lang.String)">setServerPassword</A></B>(java.lang.String password)</CODE> <BR> Sets server's passowrd, use with setLoginToServer(true) and setServerUsername</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setServerPort(int)">setServerPort</A></B>(int port)</CODE> <BR> Sets the server's port.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setServerUsername(java.lang.String)">setServerUsername</A></B>(java.lang.String username)</CODE> <BR> Sets server's username, use with setLoginToServer(true)</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setSubject(java.lang.String)">setSubject</A></B>(java.lang.String subject)</CODE> <BR> Sets the mail's subject, by default is Empty subject.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setTimeout(int)">setTimeout</A></B>(int timeout)</CODE> <BR> Sets the send timeout, by default it is 10 secs</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#setTo(java.lang.String)">setTo</A></B>(java.lang.String toAddresses)</CODE> <BR> Sets a comma separated list of address which will go in the TO mail field</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/mail/SMTP.html#unregisterListener()">unregisterListener</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="SMTP()"><!-- --></A><H3> SMTP</H3> <PRE> public <B>SMTP</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="handleNotification(javax.management.Notification, java.lang.Object)"><!-- --></A><H3> handleNotification</H3> <PRE> public void <B>handleNotification</B>(javax.management.Notification notification, java.lang.Object handback)</PRE> <DL> <DD><B>Description copied from interface: <CODE>javax.management.NotificationListener</CODE></B></DD> <DD>Called when a notification occurs. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>handleNotification</CODE> in interface <CODE>javax.management.NotificationListener</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>notification</CODE> - The notification object<DD><CODE>handback</CODE> - Helps in associating information regarding the listener.</DL> </DD> </DL> <HR> <A NAME="sendMail()"><!-- --></A><H3> sendMail</H3> <PRE> public void <B>sendMail</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#sendMail()">SMTPMBean</A></CODE></B></DD> <DD>This will directly execute the send mail. It can be used to manually testing the MBean or direct execution <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#sendMail()">sendMail</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getBCC()"><!-- --></A><H3> getBCC</H3> <PRE> public java.lang.String <B>getBCC</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getBCC()">SMTPMBean</A></CODE></B></DD> <DD>Gets a comma separated list of addresses set in the BCC field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getBCC()">getBCC</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setBCC(java.lang.String)"><!-- --></A><H3> setBCC</H3> <PRE> public void <B>setBCC</B>(java.lang.String bccAddresses)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setBCC(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets a comma separated list of address which will go in the BCC mail field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setBCC(java.lang.String)">setBCC</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setCC(java.lang.String)"><!-- --></A><H3> setCC</H3> <PRE> public void <B>setCC</B>(java.lang.String ccAddresses)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setCC(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets a comma separated list of address which will go in the CC mail field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setCC(java.lang.String)">setCC</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getCC()"><!-- --></A><H3> getCC</H3> <PRE> public java.lang.String <B>getCC</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getCC()">SMTPMBean</A></CODE></B></DD> <DD>Gets a comma separated list of addresses set in the CC field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getCC()">getCC</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getFromAddress()"><!-- --></A><H3> getFromAddress</H3> <PRE> public java.lang.String <B>getFromAddress</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getFromAddress()">SMTPMBean</A></CODE></B></DD> <DD>Gets the from address attached to mails <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getFromAddress()">getFromAddress</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setFromAddress(java.lang.String)"><!-- --></A><H3> setFromAddress</H3> <PRE> public void <B>setFromAddress</B>(java.lang.String fromAddress)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setFromAddress(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the form address set to mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setFromAddress(java.lang.String)">setFromAddress</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setServerHost(java.lang.String)"><!-- --></A><H3> setServerHost</H3> <PRE> public void <B>setServerHost</B>(java.lang.String host)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerHost(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the server's host, it can be set as name or IP <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerHost(java.lang.String)">setServerHost</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getServerHost()"><!-- --></A><H3> getServerHost</H3> <PRE> public java.lang.String <B>getServerHost</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerHost()">SMTPMBean</A></CODE></B></DD> <DD>Gets the server's host as name or IP <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerHost()">getServerHost</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setServerPort(int)"><!-- --></A><H3> setServerPort</H3> <PRE> public void <B>setServerPort</B>(int port)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerPort(int)">SMTPMBean</A></CODE></B></DD> <DD>Sets the server's port. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerPort(int)">setServerPort</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getServerPort()"><!-- --></A><H3> getServerPort</H3> <PRE> public int <B>getServerPort</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerPort()">SMTPMBean</A></CODE></B></DD> <DD>Gets the server's port, by default is 25 <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerPort()">getServerPort</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setServerUsername(java.lang.String)"><!-- --></A><H3> setServerUsername</H3> <PRE> public void <B>setServerUsername</B>(java.lang.String username)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerUsername(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets server's username, use with setLoginToServer(true) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerUsername(java.lang.String)">setServerUsername</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getServerUsername()"><!-- --></A><H3> getServerUsername</H3> <PRE> public java.lang.String <B>getServerUsername</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerUsername()">SMTPMBean</A></CODE></B></DD> <DD>Gets the username to log to the server <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getServerUsername()">getServerUsername</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setServerPassword(java.lang.String)"><!-- --></A><H3> setServerPassword</H3> <PRE> public void <B>setServerPassword</B>(java.lang.String password)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerPassword(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets server's passowrd, use with setLoginToServer(true) and setServerUsername <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setServerPassword(java.lang.String)">setServerPassword</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setLoginToServer(boolean)"><!-- --></A><H3> setLoginToServer</H3> <PRE> public void <B>setLoginToServer</B>(boolean login)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setLoginToServer(boolean)">SMTPMBean</A></CODE></B></DD> <DD>Sets whether to login to the SMTP server <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setLoginToServer(boolean)">setLoginToServer</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isLoginToServer()"><!-- --></A><H3> isLoginToServer</H3> <PRE> public boolean <B>isLoginToServer</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#isLoginToServer()">SMTPMBean</A></CODE></B></DD> <DD>Indicates whether login to the SMTP server will be attpemted <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#isLoginToServer()">isLoginToServer</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getFromName()"><!-- --></A><H3> getFromName</H3> <PRE> public java.lang.String <B>getFromName</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getFromName()">SMTPMBean</A></CODE></B></DD> <DD>Gets the from name presented on the mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getFromName()">getFromName</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setFromName(java.lang.String)"><!-- --></A><H3> setFromName</H3> <PRE> public void <B>setFromName</B>(java.lang.String fromName)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setFromName(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the from name presented on the mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setFromName(java.lang.String)">setFromName</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getMimeType()"><!-- --></A><H3> getMimeType</H3> <PRE> public java.lang.String <B>getMimeType</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getMimeType()">SMTPMBean</A></CODE></B></DD> <DD>Gets the MIME type set to the mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getMimeType()">getMimeType</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setMimeType(java.lang.String)"><!-- --></A><H3> setMimeType</H3> <PRE> public void <B>setMimeType</B>(java.lang.String mimeType)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setMimeType(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the MIME type, by default it is text/plain <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setMimeType(java.lang.String)">setMimeType</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getNotificationName()"><!-- --></A><H3> getNotificationName</H3> <PRE> public java.lang.String <B>getNotificationName</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getNotificationName()">SMTPMBean</A></CODE></B></DD> <DD>Returns the notification which will trigger the mail sending <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getNotificationName()">getNotificationName</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setNotificationName(java.lang.String)"><!-- --></A><H3> setNotificationName</H3> <PRE> public void <B>setNotificationName</B>(java.lang.String notificationName)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setNotificationName(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the notification name which will trigger the mail sending. If it is null any notification will trigger a mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setNotificationName(java.lang.String)">setNotificationName</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSubject()"><!-- --></A><H3> getSubject</H3> <PRE> public java.lang.String <B>getSubject</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getSubject()">SMTPMBean</A></CODE></B></DD> <DD>Gets the mail subject <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getSubject()">getSubject</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setSubject(java.lang.String)"><!-- --></A><H3> setSubject</H3> <PRE> public void <B>setSubject</B>(java.lang.String subject)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setSubject(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the mail's subject, by default is Empty subject. The subject field can contain keyword expansion <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setSubject(java.lang.String)">setSubject</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getContent()"><!-- --></A><H3> getContent</H3> <PRE> public java.lang.String <B>getContent</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getContent()">SMTPMBean</A></CODE></B></DD> <DD>Returns the content of the mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getContent()">getContent</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setContent(java.lang.String)"><!-- --></A><H3> setContent</H3> <PRE> public void <B>setContent</B>(java.lang.String content)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setContent(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets the content of the mail <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setContent(java.lang.String)">setContent</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setTimeout(int)"><!-- --></A><H3> setTimeout</H3> <PRE> public void <B>setTimeout</B>(int timeout)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setTimeout(int)">SMTPMBean</A></CODE></B></DD> <DD>Sets the send timeout, by default it is 10 secs <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setTimeout(int)">setTimeout</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getTimeout()"><!-- --></A><H3> getTimeout</H3> <PRE> public int <B>getTimeout</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getTimeout()">SMTPMBean</A></CODE></B></DD> <DD>Returns the timeout used when sending mails <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getTimeout()">getTimeout</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setObservedObject(javax.management.ObjectName)"><!-- --></A><H3> setObservedObject</H3> <PRE> public void <B>setObservedObject</B>(javax.management.ObjectName targetMBeanName)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setObservedObject(javax.management.ObjectName)">SMTPMBean</A></CODE></B></DD> <DD>Sets the observed object. It is expected that the observed MBean is a NotificationBroadcster On the contrary the MBean will not be listening to events <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setObservedObject(javax.management.ObjectName)">setObservedObject</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getObservedObject()"><!-- --></A><H3> getObservedObject</H3> <PRE> public javax.management.ObjectName <B>getObservedObject</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getObservedObject()">SMTPMBean</A></CODE></B></DD> <DD>Gets the MBean's objectname which is being listened <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getObservedObject()">getObservedObject</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getTo()"><!-- --></A><H3> getTo</H3> <PRE> public java.lang.String <B>getTo</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getTo()">SMTPMBean</A></CODE></B></DD> <DD>Gets a comma separated list of addresses set in the TO field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#getTo()">getTo</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="setTo(java.lang.String)"><!-- --></A><H3> setTo</H3> <PRE> public void <B>setTo</B>(java.lang.String toAddresses)</PRE> <DL> <DD><B>Description copied from interface: <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setTo(java.lang.String)">SMTPMBean</A></CODE></B></DD> <DD>Sets a comma separated list of address which will go in the TO mail field <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html#setTo(java.lang.String)">setTo</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail">SMTPMBean</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="preRegister(javax.management.MBeanServer, javax.management.ObjectName)"><!-- --></A><H3> preRegister</H3> <PRE> public javax.management.ObjectName <B>preRegister</B>(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception</PRE> <DL> <DD>Gathers some basic data <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>preRegister</CODE> in interface <CODE>javax.management.MBeanRegistration</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>server</CODE> - The MBeanServer on which the MBean will be registered.<DD><CODE>name</CODE> - The <code>ObjectName</code> of the MBean. <DT><B>Returns:</B><DD>The <code>ObjectName</code> of the registered MBean, must not be null <DT><B>Throws:</B> <DD><CODE>java.lang.Exception</CODE> - Any possible exception generated by this method will be caught by the <code>MBeanServer</code> and re-thrown as an <code>MBeanRegistrationException</code> to the client.</DL> </DD> </DL> <HR> <A NAME="postRegister(java.lang.Boolean)"><!-- --></A><H3> postRegister</H3> <PRE> public void <B>postRegister</B>(java.lang.Boolean registrationDone)</PRE> <DL> <DD><B>Description copied from interface: <CODE>javax.management.MBeanRegistration</CODE></B></DD> <DD>Callback called just after the MBean has been registered (successfully or not). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>postRegister</CODE> in interface <CODE>javax.management.MBeanRegistration</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>registrationDone</CODE> - True if the registration was successful, false otherwise.</DL> </DD> </DL> <HR> <A NAME="preDeregister()"><!-- --></A><H3> preDeregister</H3> <PRE> public void <B>preDeregister</B>() throws java.lang.Exception</PRE> <DL> <DD><B>Description copied from interface: <CODE>javax.management.MBeanRegistration</CODE></B></DD> <DD>Callback called just before MBean unregistration from the MBeanServer. Any exception thrown by this method will cause the MBean unregistration to abort. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>preDeregister</CODE> in interface <CODE>javax.management.MBeanRegistration</CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.lang.Exception</CODE> - Any possible exception generated by this method will be caught by the <code>MBeanServer</code> and re-thrown as an <code>MBeanRegistrationException</code> to the client.</DL> </DD> </DL> <HR> <A NAME="postDeregister()"><!-- --></A><H3> postDeregister</H3> <PRE> public void <B>postDeregister</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>javax.management.MBeanRegistration</CODE></B></DD> <DD>Callback called just after the MBean has been successfully unregistered. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>postDeregister</CODE> in interface <CODE>javax.management.MBeanRegistration</CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="registerListener()"><!-- --></A><H3> registerListener</H3> <PRE> protected void <B>registerListener</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="unregisterListener()"><!-- --></A><H3> unregisterListener</H3> <PRE> protected void <B>unregisterListener</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SMTP.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../mx4j/tools/mail/SMTPMBean.html" title="interface in mx4j.tools.mail"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mx4j/tools/mail/SMTP.html" target="_top"><B>FRAMES</B></A> <A HREF="SMTP.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <center><small>Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.</small></center> </BODY> </HTML>