javax.mail.internet

Class MimeMessage.RecipientType

Enclosing Class:
MimeMessage
Implemented Interfaces:
Serializable

public static class MimeMessage.RecipientType
extends Message.RecipientType

This inner class extends the javax.mail.Message.RecipientType class to add additional RecipientTypes. The one additional RecipientType currently defined here is NEWSGROUPS.

Field Summary

static MimeMessage.RecipientType
NEWSGROUPS
The "Newsgroup"(Usenet news) recipients.

Fields inherited from class javax.mail.Message.RecipientType

BCC, CC, TO, type

Constructor Summary

RecipientType(String type)
Constructor for use by subclasses.

Method Summary

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.

Methods inherited from class javax.mail.Message.RecipientType

readResolve

Field Details

NEWSGROUPS

public static final MimeMessage.RecipientType NEWSGROUPS
The "Newsgroup"(Usenet news) recipients.

Constructor Details

RecipientType

protected RecipientType(String type)
Constructor for use by subclasses.

Method Details

readResolve

protected Object readResolve()
            throws ObjectStreamException
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.
Overrides:
readResolve in interface Message.RecipientType