Name

Message.RecipientType

Synopsis

This is an inner class that defines the kinds of recipients supported by the Message class. Currently TO, CC and BCC are supported.

public static class Message.RecipientType implements Serializable {
// Protected Constructors
   protected RecipientType( String type);  
// Public Constants
   public static final Message.RecipientType BCC;  
   public static final Message.RecipientType CC;  
   public static final Message.RecipientType TO;  
// Protected Instance Methods
   protected Object readResolve(                                 // 1.2
        ) throws ObjectStreamException;  
// Protected Instance Fields
   protected String type;  
}

Subclasses

javax.mail.internet.MimeMessage.RecipientType

Passed To

javax.mail.Message.{addRecipient(), addRecipients(), getRecipients(), setRecipient(), setRecipients()}, javax.mail.internet.MimeMessage.{addRecipients(), getRecipients(), setRecipients()}, javax.mail.search.RecipientStringTerm.RecipientStringTerm(), javax.mail.search.RecipientTerm.RecipientTerm()

Returned By

javax.mail.search.RecipientStringTerm.getRecipientType(), javax.mail.search.RecipientTerm.getRecipientType()

Type Of

Message.RecipientType.{BCC, CC, TO}, javax.mail.search.RecipientTerm.type

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.