Module jakarta.mail
Package javax.mail

Class Message.RecipientType

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Message.RecipientType BCC
      The "Bcc" (blind carbon copy) recipients.
      static Message.RecipientType CC
      The "Cc" (carbon copy) recipients.
      static Message.RecipientType TO
      The "To" (primary) recipients.
      protected java.lang.String type
      The type of recipient, usually the name of a corresponding Internet standard header.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RecipientType​(java.lang.String type)
      Constructor for use by subclasses.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.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.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

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

      • RecipientType

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

      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.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:
        java.io.ObjectStreamException - for object stream errors
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object