Package jakarta.mail

Class Message.RecipientType

    • Field Detail

      • type

        protected String type
        The type of recipient, usually the name of a corresponding Internet standard header.
    • Constructor Detail

      • RecipientType

        protected RecipientType​(String type)
        Constructor for use by subclasses.
        Parameters:
        type - the recipient type
    • Method Detail

      • 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.
        Returns:
        the RecipientType object instance
        Throws:
        ObjectStreamException - for object stream errors