javax.mail
Class Message.RecipientType

java.lang.Object
  extended byjavax.mail.Message.RecipientType
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MimeMessage.RecipientType
Enclosing class:
Message

public static class Message.RecipientType
extends java.lang.Object
implements java.io.Serializable

The types of recipients to which a message can be sent. The types defined here are TO, CC and BCC. Other types may be defined by subclasses.

See Also:
Serialized Form

Field Summary
static Message.RecipientType BCC
          "Blind" carbon-copy recipients.
static Message.RecipientType CC
          Carbon-copy recipients.
static Message.RecipientType TO
          Primary recipients.
protected  java.lang.String type
          The type of recipient.
 
Constructor Summary
protected Message.RecipientType(java.lang.String type)
           
 
Method Summary
protected  java.lang.Object readResolve()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TO

public static final Message.RecipientType TO
Primary recipients.


CC

public static final Message.RecipientType CC
Carbon-copy recipients.


BCC

public static final Message.RecipientType BCC
"Blind" carbon-copy recipients. This type of recipient is hidden from other recipients of the message.


type

protected java.lang.String type
The type of recipient.

Constructor Detail

Message.RecipientType

protected Message.RecipientType(java.lang.String type)
Method Detail

readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException

toString

public java.lang.String toString()


© Copyright 2003, 2004 The Free Software Foundation, All rights reserved