|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.mail.Message.RecipientType
public static class Message.RecipientType
This inner class defines the types of recipients allowed by the Message class. The currently defined types are TO, CC and BCC. Note that this class only has a protected constructor, thereby restricting new Recipient types to either this class or subclasses. This effectively implements an enumeration of the allowed Recipient types. The following code sample shows how to use this class to obtain the "TO" recipients from a message.
Message msg = folder.getMessages(1); Address[] a = m.getRecipients(Message.RecipientType.TO);
Message.getRecipients(javax.mail.Message.RecipientType),
Message.setRecipients(javax.mail.Message.RecipientType, javax.mail.Address[]),
Message.addRecipients(javax.mail.Message.RecipientType, javax.mail.Address[]),
序列化表格| 字段摘要 | |
|---|---|
static Message.RecipientType |
BCC
The "Bcc" (blind carbon copy) recipients. |
static Message.RecipientType |
CC
The "Cc" (carbon copy) recipients. |
static Message.RecipientType |
TO
The "To" (primary) recipients. |
protected String |
type
The type of recipient, usually the name of a corresponding Internet standard header. |
| 构造方法摘要 | |
|---|---|
protected |
Message.RecipientType(String type)
Constructor for use by subclasses. |
| 方法摘要 | |
|---|---|
protected Object |
readResolve()
When deserializing a RecipientType, we need to make sure to return only one of the known static final instances defined in this class. |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final Message.RecipientType TO
public static final Message.RecipientType CC
public static final Message.RecipientType BCC
protected String type
| 构造方法详细信息 |
|---|
protected Message.RecipientType(String type)
| 方法详细信息 |
|---|
protected Object readResolve()
throws ObjectStreamException
readResolve method that checks for their known
instances before calling this super method.
ObjectStreamExceptionpublic String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||