⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 message.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD>The containing folder, if this message is obtained from a folder<P><DL></DL></DL><HR><A NAME="session"><!-- --></A><H3>session</H3><PRE>protected <A HREF="../../javax/mail/Session.html" title="class in javax.mail">Session</A> <B>session</B></PRE><DL><DD>The Session object for this Message<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Message()"><!-- --></A><H3>Message</H3><PRE>protected <B>Message</B>()</PRE><DL><DD>No-arg version of the constructor.<P></DL><HR><A NAME="Message(javax.mail.Folder, int)"><!-- --></A><H3>Message</H3><PRE>protected <B>Message</B>(<A HREF="../../javax/mail/Folder.html" title="class in javax.mail">Folder</A>&nbsp;folder,                  int&nbsp;msgnum)</PRE><DL><DD>Constructor that takes a Folder and a message number.  Used by Folder implementations.<P><DT><B>Parameters:</B><DD><CODE>folder</CODE> - containing folder<DD><CODE>msgnum</CODE> - this message's sequence number within this folder</DL><HR><A NAME="Message(javax.mail.Session)"><!-- --></A><H3>Message</H3><PRE>protected <B>Message</B>(<A HREF="../../javax/mail/Session.html" title="class in javax.mail">Session</A>&nbsp;session)</PRE><DL><DD>Constructor that takes a Session. Used for client created Message objects.<P><DT><B>Parameters:</B><DD><CODE>session</CODE> - A Session object</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getFrom()"><!-- --></A><H3>getFrom</H3><PRE>public abstract <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] <B>getFrom</B>()                           throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Returns the "From" attribute. The "From" attribute contains the identity of the person(s) who wished this message to  be sent. <p>  In certain implementations, this may be different from the entity that actually sent the message. <p> This method returns <code>null</code> if this attribute is not present in this message. Returns an empty array if this attribute is present, but contains no addresses.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>array of Address objects<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL></DD></DL><HR><A NAME="setFrom()"><!-- --></A><H3>setFrom</H3><PRE>public abstract void <B>setFrom</B>()                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the "From" attribute in this Message. The value of this attribute is obtained from the property "mail.user". If this property is absent, the system property "user.name" is used.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying 			implementation does not support modification 			of existing values<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this message is			obtained from a READ_ONLY folder.</DL></DD></DL><HR><A NAME="setFrom(javax.mail.Address)"><!-- --></A><H3>setFrom</H3><PRE>public abstract void <B>setFrom</B>(<A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>&nbsp;address)                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the "From" attribute in this Message.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>address</CODE> - the sender<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying 			implementation does not support modification 			of existing values<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this message is			obtained from a READ_ONLY folder.</DL></DD></DL><HR><A NAME="addFrom(javax.mail.Address[])"><!-- --></A><H3>addFrom</H3><PRE>public abstract void <B>addFrom</B>(<A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;addresses)                      throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Add these addresses to the existing "From" attribute<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>addresses</CODE> - the senders<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying 			implementation does not support modification 			of existing values<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this message is			obtained from a READ_ONLY folder.<DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE></DL></DD></DL><HR><A NAME="getRecipients(javax.mail.Message.RecipientType)"><!-- --></A><H3>getRecipients</H3><PRE>public abstract <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] <B>getRecipients</B>(<A HREF="../../javax/mail/Message.RecipientType.html" title="class in javax.mail">Message.RecipientType</A>&nbsp;type)                                 throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get all the recipient addresses of the given type. <p> This method returns <code>null</code> if no recipients of the given type are present in this message. It may return an  empty array if the header is present, but contains no addresses.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the recipient type<DT><B>Returns:</B><DD>array of Address objects<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../javax/mail/Message.RecipientType.html#TO"><CODE>Message.RecipientType.TO</CODE></A>, <A HREF="../../javax/mail/Message.RecipientType.html#CC"><CODE>Message.RecipientType.CC</CODE></A>, <A HREF="../../javax/mail/Message.RecipientType.html#BCC"><CODE>Message.RecipientType.BCC</CODE></A></DL></DD></DL><HR><A NAME="getAllRecipients()"><!-- --></A><H3>getAllRecipients</H3><PRE>public <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] <B>getAllRecipients</B>()                           throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get all the recipient addresses for the message. The default implementation extracts the TO, CC, and BCC recipients using the <code>getRecipients</code> method. <p> This method returns <code>null</code> if none of the recipient headers are present in this message.  It may Return an empty array if any recipient header is present, but contains no addresses.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>array of Address objects<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../javax/mail/Message.RecipientType.html#TO"><CODE>Message.RecipientType.TO</CODE></A>, <A HREF="../../javax/mail/Message.RecipientType.html#CC"><CODE>Message.RecipientType.CC</CODE></A>, <A HREF="../../javax/mail/Message.RecipientType.html#BCC"><CODE>Message.RecipientType.BCC</CODE></A>, <A HREF="../../javax/mail/Message.html#getRecipients(javax.mail.Message.RecipientType)"><CODE>getRecipients(javax.mail.Message.RecipientType)</CODE></A></DL></DD></DL><HR><A NAME="setRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])"><!-- --></A><H3>setRecipients</H3><PRE>public abstract void <B>setRecipients</B>(<A HREF="../../javax/mail/Message.RecipientType.html" title="class in javax.mail">Message.RecipientType</A>&nbsp;type,                                   <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;addresses)                            throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the recipient addresses.  All addresses of the specified type are replaced by the addresses parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the recipient type<DD><CODE>addresses</CODE> - the addresses<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying 			implementation does not support modification 			of existing values<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this message is			obtained from a READ_ONLY folder.</DL></DD></DL><HR><A NAME="setRecipient(javax.mail.Message.RecipientType, javax.mail.Address)"><!-- --></A><H3>setRecipient</H3><PRE>public void <B>setRecipient</B>(<A HREF="../../javax/mail/Message.RecipientType.html" title="class in javax.mail">Message.RecipientType</A>&nbsp;type,                         <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>&nbsp;address)                  throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the recipient address.  All addresses of the specified type are replaced by the address parameter. <p> The default implementation uses the <code>setRecipients</code> method.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the recipient type<DD><CODE>address</CODE> - the address<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></CODE><DD><CODE><A HREF="../../javax/mail/IllegalWriteException.html" title="class in javax.mail">IllegalWriteException</A></CODE> - if the underlying 			implementation does not support modification 			of existing values</DL></DD></DL><HR><A NAME="addRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])"><!-- --></A><H3>addRecipients</H3>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -