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

📄 message.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<PRE>public abstract void <B>addRecipients</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>Add these recipient addresses to the existing ones of the given type.<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="addRecipient(javax.mail.Message.RecipientType, javax.mail.Address)"><!-- --></A><H3>addRecipient</H3><PRE>public void <B>addRecipient</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>Add this recipient address to the existing ones of the given type. <p> The default implementation uses the <code>addRecipients</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="getReplyTo()"><!-- --></A><H3>getReplyTo</H3><PRE>public <A HREF="../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] <B>getReplyTo</B>()                     throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get the addresses to which replies should be directed. This will usually be the sender of the message, but some messages may direct replies to a different address. <p> The default implementation simply calls the <code>getFrom</code> method. <p> This method returns <code>null</code> if the corresponding header is not present. Returns an empty array if the header is present, but contains no addresses.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>addresses to which replies should be directed<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.html#getFrom()"><CODE>getFrom()</CODE></A></DL></DD></DL><HR><A NAME="setReplyTo(javax.mail.Address[])"><!-- --></A><H3>setReplyTo</H3><PRE>public void <B>setReplyTo</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>Set the addresses to which replies should be directed. (Normally only a single address will be specified.) Not all message types allow this to be specified separately from the sender of the message. <p> The default implementation provided here just throws the MethodNotSupportedException.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>addresses</CODE> - addresses to which replies should be directed<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.<DD><CODE><A HREF="../../javax/mail/MethodNotSupportedException.html" title="class in javax.mail">MethodNotSupportedException</A></CODE> - if the underlying 			implementation does not support setting this			attribute</DL></DD></DL><HR><A NAME="getSubject()"><!-- --></A><H3>getSubject</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getSubject</B>()                           throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get the subject of this message.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the subject<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="setSubject(java.lang.String)"><!-- --></A><H3>setSubject</H3><PRE>public abstract void <B>setSubject</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;subject)                         throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the subject of this message.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subject</CODE> - the subject<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="getSentDate()"><!-- --></A><H3>getSentDate</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getSentDate</B>()                          throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get the date this message was sent.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the date this message was sent<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="setSentDate(java.util.Date)"><!-- --></A><H3>setSentDate</H3><PRE>public abstract void <B>setSentDate</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;date)                          throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the sent date of this message.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>date</CODE> - the sent date of this message<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="getReceivedDate()"><!-- --></A><H3>getReceivedDate</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getReceivedDate</B>()                              throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Get the date this message was received.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the date this message was received<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="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public abstract <A HREF="../../javax/mail/Flags.html" title="class in javax.mail">Flags</A> <B>getFlags</B>()                        throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Returns a <code>Flags</code> object containing the flags for  this message. <p> Modifying any of the flags in this returned Flags object will  not affect the flags of this message. Use <code>setFlags()</code> to do that. <p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Flags object containing the flags for this message<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/Flags.html" title="class in javax.mail"><CODE>Flags</CODE></A>, <A HREF="../../javax/mail/Message.html#setFlags(javax.mail.Flags, boolean)"><CODE>setFlags(javax.mail.Flags, boolean)</CODE></A></DL></DD></DL><HR><A NAME="isSet(javax.mail.Flags.Flag)"><!-- --></A><H3>isSet</H3><PRE>public boolean <B>isSet</B>(<A HREF="../../javax/mail/Flags.Flag.html" title="class in javax.mail">Flags.Flag</A>&nbsp;flag)              throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Check whether the flag specified in the <code>flag</code> argument is set in this message. <p> The default implementation uses <code>getFlags</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - the flag<DT><B>Returns:</B><DD>value of the specified flag for this message<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/Flags.Flag.html" title="class in javax.mail"><CODE>Flags.Flag</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#ANSWERED"><CODE>Flags.Flag.ANSWERED</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#DELETED"><CODE>Flags.Flag.DELETED</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#DRAFT"><CODE>Flags.Flag.DRAFT</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#FLAGGED"><CODE>Flags.Flag.FLAGGED</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#RECENT"><CODE>Flags.Flag.RECENT</CODE></A>, <A HREF="../../javax/mail/Flags.Flag.html#SEEN"><CODE>Flags.Flag.SEEN</CODE></A></DL></DD></DL><HR><A NAME="setFlags(javax.mail.Flags, boolean)"><!-- --></A><H3>setFlags</H3><PRE>public abstract void <B>setFlags</B>(<A HREF="../../javax/mail/Flags.html" title="class in javax.mail">Flags</A>&nbsp;flag,                              boolean&nbsp;set)                       throws <A HREF="../../javax/mail/MessagingException.html" title="class in javax.mail">MessagingException</A></PRE><DL><DD>Set the specified flags on this message to the specified value. Note that any flags in this message that are not specified in

⌨️ 快捷键说明

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