## Uses of Class
javax.mail.Session

- Packages that use Session
  Package | Description
  --- | ---
  com.sun.mail.gimap | An EXPERIMENTAL IMAP protocol provider that supports the Gmail-specific IMAP protocol extensions .
  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.
  com.sun.mail.util | Utility classes for use with the JavaMail API.
  javax.mail | The JavaMailTM API provides classes that model a mail system.
  javax.mail.internet | Classes specific to Internet mail systems.

- - ### Uses of Session in com.sun.mail.gimap

    Constructors in com.sun.mail.gimap with parameters of type Session
    Constructor and Description
    `GmailMessage(Session session)` Constructor, for use by IMAPNestedMessage.
    `GmailSSLStore(Session session, URLName url)` Constructor that takes a Session object and a URLName that represents a specific IMAP server.
    `GmailStore(Session session, URLName url)` Constructor that takes a Session object and a URLName that represents a specific IMAP server.
    `GmailStore(Session session, URLName url, String name, boolean isSSL)` Constructor used by GmailSSLStore subclass.

  - ### Uses of Session in com.sun.mail.imap

    Constructors in com.sun.mail.imap with parameters of type Session
    Constructor and Description
    `IdleManager(Session session, Executor es)` Create an IdleManager.
    `IMAPMessage(Session session)` Constructor, for use by IMAPNestedMessage.
    `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, boolean isSSL)` Constructor used by this class and by IMAPSSLStore subclass.

  - ### Uses of Session in com.sun.mail.pop3

    Constructors in com.sun.mail.pop3 with parameters of type Session
    Constructor and Description
    `POP3SSLStore(Session session, URLName url)`
    `POP3Store(Session session, URLName url)`
    `POP3Store(Session session, URLName url, String name, boolean isSSL)`

  - ### Uses of Session in com.sun.mail.smtp

    Constructors in com.sun.mail.smtp with parameters of type Session
    Constructor and Description
    `SMTPMessage(Session session)` Default constructor.
    `SMTPMessage(Session session, InputStream is)` Constructs an SMTPMessage by reading and parsing the data from the specified MIME InputStream.
    `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, boolean isSSL)` Constructor used by this class and by SMTPSSLTransport subclass.

  - ### Uses of Session in com.sun.mail.util

    Methods in com.sun.mail.util with parameters of type Session
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | PropUtil.`getBooleanSessionProperty(Session session, String name, boolean def)` Get a boolean valued property.
    `static int` | PropUtil.`getIntSessionProperty(Session session, String name, int def)` Get an integer valued property.

    Constructors in com.sun.mail.util with parameters of type Session
    Constructor and Description
    `MailLogger(Class<?> clazz, String prefix, Session session)` Construct a new MailLogger using the specified class' package name as the Logger name and the specified debug prefix (e.g., "DEBUG").
    `MailLogger(String name, String prefix, Session session)` Construct a new MailLogger using the specified Logger name and debug prefix (e.g., "DEBUG").

  - ### Uses of Session in javax.mail

    Fields in javax.mail declared as Session
    Modifier and Type | Field and Description
    --- | ---
    `protected Session` | Service.`session` The session from which this service was created.
    `protected Session` | Message.`session` The Session object for this Message

    Methods in javax.mail that return Session
    Modifier and Type | Method and Description
    --- | ---
    `static Session` | Session.`getDefaultInstance(Properties props)` Get the default Session object.
    `static Session` | Session.`getDefaultInstance(Properties props, Authenticator authenticator)` Get the default Session object.
    `static Session` | Session.`getInstance(Properties props)` Get a new Session object.
    `static Session` | Session.`getInstance(Properties props, Authenticator authenticator)` Get a new Session object.
    `Session` | MessageContext.`getSession()` Return the Session we're operating in.
    `Session` | Message.`getSession()` Return the Session used when this message was created.

    Constructors in javax.mail with parameters of type Session
    Constructor and Description
    `Message(Session session)` Constructor that takes a Session.
    `Service(Session session, URLName urlname)` Constructor.
    `Store(Session session, URLName urlname)` Constructor.
    `Transport(Session session, URLName urlname)` Constructor.

  - ### Uses of Session in javax.mail.internet

    Methods in javax.mail.internet with parameters of type Session
    Modifier and Type | Method and Description
    --- | ---
    `protected MimeMessage` | MimeMessage.`createMimeMessage(Session session)` Create and return a MimeMessage object.
    `static InternetAddress` | InternetAddress.`getLocalAddress(Session session)` Return an InternetAddress object representing the current user.

    Constructors in javax.mail.internet with parameters of type Session
    Constructor and Description
    `MimeMessage(Session session)` Default constructor.
    `MimeMessage(Session session, InputStream is)` Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.

Copyright © 2016 Oracle. All rights reserved.