- java.lang.Object
- 
- jakarta.mail.Message.RecipientType
- 
- jakarta.mail.internet.MimeMessage.RecipientType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 - Enclosing class:
- MimeMessage
 
 public static class MimeMessage.RecipientType extends Message.RecipientType 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:
- Message.RecipientType, Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static MimeMessage.RecipientTypeNEWSGROUPSThe "Newsgroup" (Usenet news) recipients.- 
Fields inherited from class jakarta.mail.Message.RecipientTypeBCC, CC, TO, type
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRecipientType(java.lang.String type)Constructor for use by subclasses.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectreadResolve()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.RecipientTypetoString
 
- 
 
- 
- 
- 
Field Detail- 
NEWSGROUPSpublic static final MimeMessage.RecipientType NEWSGROUPS The "Newsgroup" (Usenet news) recipients.
 
- 
 - 
Method Detail- 
readResolveprotected java.lang.Object readResolve() throws java.io.ObjectStreamExceptionDescription copied from class:Message.RecipientTypeWhen 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 ownreadResolvemethod that checks for their known instances before calling this super method.- Overrides:
- readResolvein class- Message.RecipientType
- Returns:
- the RecipientType object instance
- Throws:
- java.io.ObjectStreamException- for object stream errors
 
 
- 
 
-