| Package | Description |
|---|---|
| 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.
|
| javax.mail.internet |
Classes specific to Internet mail systems.
|
| Constructor | Description |
|---|---|
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,
java.lang.String name,
boolean isSSL) |
Constructor used by this class and by IMAPSSLStore subclass.
|
| Constructor | Description |
|---|---|
POP3SSLStore(Session session,
URLName url) |
|
POP3Store(Session session,
URLName url) |
|
POP3Store(Session session,
URLName url,
java.lang.String name,
boolean isSSL) |
| Constructor | Description |
|---|---|
SMTPMessage(Session session) |
Default constructor.
|
SMTPMessage(Session session,
java.io.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,
java.lang.String name,
boolean isSSL) |
Constructor used by this class and by SMTPSSLTransport subclass.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected Session |
Message.session |
The Session object for this Message
|
protected Session |
Service.session |
The session from which this service was created.
|
| 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.
|
| Constructor | 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.
|
| Modifier and Type | Method | 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.
|
| 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.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms< /a>.