Package | Description |
---|---|
javax.mail | |
javax.mail.internet | |
org.apache.geronimo.mail.util |
Modifier and Type | Field and Description |
---|---|
protected Session |
Message.session
The
Session associated with this message. |
protected Session |
Service.session
The session from which this service was created.
|
Modifier and Type | Method and Description |
---|---|
static Session |
Session.getDefaultInstance(Properties properties)
Get the "default" instance assuming no authenticator is required.
|
static Session |
Session.getDefaultInstance(Properties properties,
Authenticator authenticator)
Get the "default" session.
|
static Session |
Session.getInstance(Properties properties)
Create a new session initialized with the supplied properties with no authenticator.
|
static Session |
Session.getInstance(Properties properties,
Authenticator authenticator)
Create a new session initialized with the supplied properties which uses the supplied authenticator.
|
Session |
MessageContext.getSession()
Return the session associated with the Message containing this Part.
|
Constructor and Description |
---|
Message(Session session)
Constructor initializing the session; intended to by used by client created instances.
|
Service(Session session,
URLName url)
Construct a new Service.
|
Store(Session session,
URLName name)
Constructor specifying session and url of this store.
|
Transport(Session session,
URLName name)
Constructor taking Session and URLName parameters required for
Service.Service(Session, URLName) . |
Modifier and Type | Method and Description |
---|---|
static InternetAddress |
InternetAddress.getLocalAddress(Session session)
Return an InternetAddress representing the current user.
|
Constructor and Description |
---|
MimeMessage(Session session)
Create a new MimeMessage.
|
MimeMessage(Session session,
InputStream in)
Create a MimeMessage by reading an parsing the data from the supplied stream.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
SessionUtil.getBooleanProperty(Session session,
String name,
boolean defaultValue)
Get a property associated with this mail session as a boolean value.
|
static int |
SessionUtil.getIntProperty(Session session,
String name,
int defaultValue)
Get a property associated with this mail session as an integer value.
|
static String |
SessionUtil.getProperty(Session session,
String name)
Get a property associated with this mail session.
|
static String |
SessionUtil.getProperty(Session session,
String name,
String defaultValue)
Get a property associated with this mail session.
|
static boolean |
SessionUtil.isPropertyFalse(Session session,
String name)
Process a session property as a boolean value, returning
either true or false.
|
static boolean |
SessionUtil.isPropertyTrue(Session session,
String name)
Process a session property as a boolean value, returning
either true or false.
|
Copyright © 2013. All Rights Reserved.