Class MimeMessage.RecipientType

java.lang.Object
jakarta.mail.Message.RecipientType
jakarta.mail.internet.MimeMessage.RecipientType
All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • RecipientType

      protected RecipientType(String type)
  • Method Details

    • readResolve

      protected Object readResolve() throws ObjectStreamException
      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 own readResolve method that checks for their known instances before calling this super method.
      Overrides:
      readResolve in class Message.RecipientType
      Returns:
      the RecipientType object instance
      Throws:
      ObjectStreamException - for object stream errors