Uses of Class
jakarta.mail.Session
-
Packages that use Session Package Description jakarta.mail The Jakarta Mail API provides classes that model a mail system.jakarta.mail.internet Classes specific to Internet mail systems. -
-
Uses of Session in jakarta.mail
Fields in jakarta.mail declared as Session Modifier and Type Field Description private static Session
Session. defaultSession
protected 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 Session Modifier and Type Method Description static Session
Session. getDefaultInstance(java.util.Properties props)
Get the default Session object.static Session
Session. getDefaultInstance(java.util.Properties props, Authenticator authenticator)
Get the default Session object.static Session
Session. getInstance(java.util.Properties props)
Get a new Session object.static Session
Session. getInstance(java.util.Properties props, Authenticator authenticator)
Get a new Session object.Session
Message. getSession()
Return the Session used when this message was created.Session
MessageContext. getSession()
Return the Session we're operating in.(package private) Session
Service. getSession()
Package private method to allow Folder to get the Session for a Store.Constructors in jakarta.mail with parameters of type Session Constructor Description MailLogger(java.lang.Class<?> clazz, java.lang.String prefix, Session session)
Deprecated.MailLogger(java.lang.String name, java.lang.String prefix, Session session)
Deprecated.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 jakarta.mail.internet
Methods in jakarta.mail.internet with parameters of type Session Modifier and Type Method Description (package private) static InternetAddress
InternetAddress. _getLocalAddress(Session session)
A package-private version of getLocalAddress that doesn't swallow the exception.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.static java.lang.String
UniqueValue. getUniqueMessageIDValue(Session ssn)
Get a unique value for use in a Message-ID.Constructors in jakarta.mail.internet with parameters of type Session Constructor Description MimeMessage(Session session)
Default constructor.MimeMessage(Session session, java.io.InputStream is)
Constructs a MimeMessage by reading and parsing the data from the specified MIME InputStream.
-