Uses of Class
jakarta.mail.Session
Packages that use Session
Package
Description
The Jakarta Mail API
provides classes that model a mail system.
Classes specific to Internet mail systems.
-
Uses of Session in jakarta.mail
Fields in jakarta.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 jakarta.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 jakarta.mail with parameters of type Session -
Uses of Session in jakarta.mail.internet
Methods in jakarta.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 jakarta.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.