类 javax.mail.URLName
的使用

使用 URLName 的软件包
com.sun.mail.imap An IMAP protocol provider for the JavaMail API that provides access to an IMAP message store. 
com.sun.mail.pop3 A POP3 protocol provider for the JavaMail API that provides access to a POP3 message store. 
com.sun.mail.smtp An SMTP protocol provider for the JavaMail API that provides access to an SMTP server. 
javax.mail The JavaMailTM API provides classes that model a mail system. 
 

com.sun.mail.imapURLName 的使用
 

参数类型为 URLNamecom.sun.mail.imap 中的方法
 Folder IMAPStore.getFolder(URLName url)
          Get named folder.
 

参数类型为 URLNamecom.sun.mail.imap 中的构造方法
IMAPSSLStore(Session session, URLName url)
          Constructor that takes a Session object and a URLName that represents a specific IMAP server.
IMAPStore(Session session, URLName url)
          Constructor that takes a Session object and a URLName that represents a specific IMAP server.
IMAPStore(Session session, URLName url, String name, int defaultPort, boolean isSSL)
          Constructor used by this class and by IMAPSSLStore subclass.
 

com.sun.mail.pop3URLName 的使用
 

参数类型为 URLNamecom.sun.mail.pop3 中的方法
 Folder POP3Store.getFolder(URLName url)
           
 

参数类型为 URLNamecom.sun.mail.pop3 中的构造方法
POP3SSLStore(Session session, URLName url)
           
POP3Store(Session session, URLName url)
           
POP3Store(Session session, URLName url, String name, int defaultPort, boolean isSSL)
           
 

com.sun.mail.smtpURLName 的使用
 

参数类型为 URLNamecom.sun.mail.smtp 中的构造方法
SMTPSSLTransport(Session session, URLName urlname)
          Constructor
SMTPTransport(Session session, URLName urlname)
          Constructor that takes a Session object and a URLName that represents a specific SMTP server.
SMTPTransport(Session session, URLName urlname, String name, int defaultPort, boolean isSSL)
          Constructor used by this class and by SMTPSSLTransport subclass.
 

javax.mailURLName 的使用
 

声明为 URLNamejavax.mail 中的字段
protected  URLName Service.url
          The URLName of this service.
 

返回 URLNamejavax.mail 中的方法
 URLName Service.getURLName()
          Return a URLName representing this service.
 URLName Folder.getURLName()
          Return a URLName representing this folder.
 

参数类型为 URLNamejavax.mail 中的方法
abstract  Folder Store.getFolder(URLName url)
          Return a closed Folder object, corresponding to the given URLName.
 Folder Session.getFolder(URLName url)
          Get a closed Folder object for the given URLName.
 PasswordAuthentication Session.getPasswordAuthentication(URLName url)
          Return any saved PasswordAuthentication for this (store or transport) URLName.
 Store Session.getStore(URLName url)
          Get a Store object for the given URLName.
 Transport Session.getTransport(URLName url)
          Get a Transport object for the given URLName.
 void Session.setPasswordAuthentication(URLName url, PasswordAuthentication pw)
          Save a PasswordAuthentication for this (store or transport) URLName.
protected  void Service.setURLName(URLName url)
          Set the URLName representing this service.
 

参数类型为 URLNamejavax.mail 中的构造方法
Service(Session session, URLName urlname)
          Constructor.
Store(Session session, URLName urlname)
          Constructor.
Transport(Session session, URLName urlname)
          Constructor.
 



Copyright © 2013. All Rights Reserved.