类 javax.mail.Message.RecipientType
的使用

使用 Message.RecipientType 的软件包
com.sun.mail.imap An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store. 
javax.mail The JavaMailTM API provides classes that model a mail system. 
javax.mail.internet Classes specific to Internet mail systems. 
javax.mail.search Message search terms for the JavaMail API. 
 

com.sun.mail.imapMessage.RecipientType 的使用
 

参数类型为 Message.RecipientTypecom.sun.mail.imap 中的方法
 void IMAPMessage.addRecipients(Message.RecipientType type, Address[] addresses)
           
 Address[] IMAPMessage.getRecipients(Message.RecipientType type)
          Get the desired Recipient type.
 void IMAPMessage.setRecipients(Message.RecipientType type, Address[] addresses)
           
 

javax.mailMessage.RecipientType 的使用
 

声明为 Message.RecipientTypejavax.mail 中的字段
static Message.RecipientType Message.RecipientType.BCC
          The "Bcc" (blind carbon copy) recipients.
static Message.RecipientType Message.RecipientType.CC
          The "Cc" (carbon copy) recipients.
static Message.RecipientType Message.RecipientType.TO
          The "To" (primary) recipients.
 

参数类型为 Message.RecipientTypejavax.mail 中的方法
 void Message.addRecipient(Message.RecipientType type, Address address)
          Add this recipient address to the existing ones of the given type.
abstract  void Message.addRecipients(Message.RecipientType type, Address[] addresses)
          Add these recipient addresses to the existing ones of the given type.
abstract  Address[] Message.getRecipients(Message.RecipientType type)
          Get all the recipient addresses of the given type.
 void Message.setRecipient(Message.RecipientType type, Address address)
          Set the recipient address.
abstract  void Message.setRecipients(Message.RecipientType type, Address[] addresses)
          Set the recipient addresses.
 

javax.mail.internetMessage.RecipientType 的使用
 

javax.mail.internetMessage.RecipientType 的子类
static class MimeMessage.RecipientType
          This inner class extends the javax.mail.Message.RecipientType class to add additional RecipientTypes.
 

参数类型为 Message.RecipientTypejavax.mail.internet 中的方法
 void MimeMessage.addRecipients(Message.RecipientType type, Address[] addresses)
          Add the given addresses to the specified recipient type.
 void MimeMessage.addRecipients(Message.RecipientType type, String addresses)
          Add the given addresses to the specified recipient type.
 Address[] MimeMessage.getRecipients(Message.RecipientType type)
          Returns the recepients specified by the type.
 void MimeMessage.setRecipients(Message.RecipientType type, Address[] addresses)
          Set the specified recipient type to the given addresses.
 void MimeMessage.setRecipients(Message.RecipientType type, String addresses)
          Set the specified recipient type to the given addresses.
 

javax.mail.searchMessage.RecipientType 的使用
 

声明为 Message.RecipientTypejavax.mail.search 中的字段
protected  Message.RecipientType RecipientTerm.type
          The recipient type.
 

返回 Message.RecipientTypejavax.mail.search 中的方法
 Message.RecipientType RecipientTerm.getRecipientType()
          Return the type of recipient to match with.
 Message.RecipientType RecipientStringTerm.getRecipientType()
          Return the type of recipient to match with.
 

参数类型为 Message.RecipientTypejavax.mail.search 中的构造方法
RecipientStringTerm(Message.RecipientType type, String pattern)
          Constructor.
RecipientTerm(Message.RecipientType type, Address address)
          Constructor.
 



Copyright © 2013. All Rights Reserved.