javax.mail
public static class: Message.RecipientType [javadoc |
source]
java.lang.Object
javax.mail.Message$RecipientType
All Implemented Interfaces:
Serializable
Enumeration of types of recipients allowed by the Message class.
| Field Summary |
|---|
| public static final Message.RecipientType | TO | A "To" or primary recipient. |
| public static final Message.RecipientType | CC | A "Cc" or carbon-copy recipient. |
| public static final Message.RecipientType | BCC | A "Bcc" or blind carbon-copy recipient. |
| protected String | type | |
| Method from javax.mail.Message$RecipientType Detail: |
protected Object readResolve() throws ObjectStreamException {
if (type.equals("To")) {
return TO;
} else if (type.equals("Cc")) {
return CC;
} else if (type.equals("Bcc")) {
return BCC;
} else {
throw new InvalidObjectException("Invalid RecipientType: " + type);
}
}
|
public String toString() {
return type;
}
|