| java.lang.Object |
| ↳ |
com.google.code.javax.mail.Message.RecipientType |
Known Direct Subclasses
| MimeMessage.RecipientType |
This inner class extends the javax.mail.Message.RecipientType
class to add additional RecipientTypes. |
|
Class Overview
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);
See Also
- javax.mail.Message#getRecipients
- javax.mail.Message#setRecipients
- javax.mail.Message#addRecipients
Summary
| Protected Methods |
|
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.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
private
static
final
long
serialVersionUID
Constant Value:
-7479791750606340008
(0x983271084f364058)
Fields
The "Bcc" (blind carbon copy) recipients.
The "Cc" (carbon copy) recipients.
The "To" (primary) recipients.
protected
String
type
The type of recipient, usually the name of a corresponding
Internet standard header.
Protected Constructors
protected
Message.RecipientType
(String type)
Constructor for use by subclasses.
Public Methods
public
String
toString
()
Protected Methods
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. Subclasses must implement their own
readResolve method that checks for their known
instances before calling this super method.