|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.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[]),
Serialized Form| Field Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Message.RecipientType TO
public static final Message.RecipientType CC
public static final Message.RecipientType BCC
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||