Uses of Class
javax.mail.Session
Packages that use Session
Package
Description
An IMAP protocol provider for the JavaMail API
that provides access to an IMAP message store.
A POP3 protocol provider for the JavaMail API
that provides access to a POP3 message store.
An SMTP protocol provider for the JavaMail API
that provides access to an SMTP server.
The JavaMailTM API
provides classes that model a mail system.
Classes specific to Internet mail systems.
-
Uses of Session in com.sun.mail.imap
Constructors in com.sun.mail.imap with parameters of type SessionModifierConstructorDescriptionprotected
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.Constructor that takes a Session object and a URLName that represents a specific IMAP server.protected
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 -
Uses of Session in com.sun.mail.smtp
Constructors in com.sun.mail.smtp with parameters of type SessionModifierConstructorDescriptionSMTPMessage
(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.protected
SMTPTransport
(Session session, URLName urlname, String name, boolean isSSL) Constructor used by this class and by SMTPSSLTransport subclass. -
Uses of Session in javax.mail
Fields in javax.mail declared as SessionModifier and TypeFieldDescriptionprotected Session
Message.session
The Session object for this Messageprotected Session
Service.session
The session from which this service was created.Methods in javax.mail that return SessionModifier and TypeMethodDescriptionstatic 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.Message.getSession()
Return the Session used when this message was created.MessageContext.getSession()
Return the Session we're operating in.Constructors in javax.mail with parameters of type Session -
Uses of Session in javax.mail.internet
Methods in javax.mail.internet with parameters of type SessionModifier and TypeMethodDescriptionprotected 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 SessionModifierConstructorDescriptionMimeMessage
(Session session) Default constructor.MimeMessage
(Session session, InputStream is) Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.