java.lang.Object
jakarta.mail.Message.RecipientType
jakarta.mail.internet.MimeMessage.RecipientType
- All Implemented Interfaces:
Serializable
- Enclosing class:
- MimeMessage
This inner class extends the jakarta.mail.Message.RecipientType
class to add additional RecipientTypes. The one additional
RecipientType currently defined here is NEWSGROUPS.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MimeMessage.RecipientType
The "Newsgroup" (Usenet news) recipients.Fields inherited from class jakarta.mail.Message.RecipientType
BCC, CC, TO, type
-
Constructor Summary
ModifierConstructorDescriptionprotected
RecipientType
(String type) Constructor for use by subclasses. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
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 jakarta.mail.Message.RecipientType
toString
-
Field Details
-
NEWSGROUPS
The "Newsgroup" (Usenet news) recipients.
-
-
Constructor Details
-
RecipientType
Constructor for use by subclasses.- Parameters:
type
- the recipient type
-
-
Method Details
-
readResolve
Description copied from class:Message.RecipientType
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 ownreadResolve
method that checks for their known instances before calling this super method.- Overrides:
readResolve
in classMessage.RecipientType
- Returns:
- the RecipientType object instance
- Throws:
ObjectStreamException
- for object stream errors
-