Package javax.mail
Class Message.RecipientType
- java.lang.Object
-
- javax.mail.Message.RecipientType
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MimeMessage.RecipientType
- Enclosing class:
- Message
public static class Message.RecipientType extends java.lang.Object implements java.io.Serializable
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);
-
-
Field Summary
Fields Modifier and Type Field Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
-
-
-
Field Detail
-
TO
public static final Message.RecipientType TO
The "To" (primary) recipients.
-
CC
public static final Message.RecipientType CC
The "Cc" (carbon copy) recipients.
-
BCC
public static final Message.RecipientType BCC
The "Bcc" (blind carbon copy) recipients.
-
-