Movatterモバイル変換


[0]ホーム

URL:


         


Class Message.RecipientType

java.lang.Object  |  +--javax.mail.Message.RecipientType
Direct Known Subclasses:
MimeMessage.RecipientType
Enclosing class:
Message

public static classMessage.RecipientType
extends java.lang.Object

This inner class defines the types of recipients allowed by the Message class. The currently defined types are TO, CC and BCC. Note that this class only has a protected constructor, therby restricting new Recipient types to either this class or subclasses. This effectively implements a enumeration of the allowed Recipient types. The following code sample shows how to use this class to obtain the "TO" recipients from a message.

 Message msg = folder.getMessages(1); Address[] a = m.getRecipients(Message.RecipientType.TO);

See Also:
Message.getRecipients(javax.mail.Message.RecipientType),Message.setRecipients(javax.mail.Message.RecipientType, javax.mail.Address[]),Message.addRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])

BCC
          The "Bcc" (blind carbon copy) recipients.
CC
          The "Cc" (carbon copy) recipients.
TO
          The "To" (primary) recipients.
type
           
 
Message.RecipientType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

TO

public static finalMessage.RecipientTypeTO
The "To" (primary) recipients.

CC

public static finalMessage.RecipientTypeCC
The "Cc" (carbon copy) recipients.

BCC

public static finalMessage.RecipientTypeBCC
The "Bcc" (blind carbon copy) recipients.

type

protected java.lang.Stringtype

Message.RecipientType

protectedMessage.RecipientType(java.lang.String type)

         


[8]ページ先頭

©2009-2025 Movatter.jp