Uses of Class
javax.mail.Session

Packages that use Session
javax.mail   
javax.mail.internet   
org.apache.geronimo.mail.util   
 

Uses of Session in javax.mail
 

Fields in javax.mail declared as Session
protected  Session Service.session
          The session from which this service was created.
protected  Session Message.session
          The Session associated with this message.
 

Methods in javax.mail that return Session
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.
 

Constructors in javax.mail with parameters of type Session
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).
 

Uses of Session in javax.mail.internet
 

Methods in javax.mail.internet with parameters of type Session
protected  MimeMessage MimeMessage.createMimeMessage(Session session)
          Method used to create a new MimeMessage instance.
static InternetAddress InternetAddress.getLocalAddress(Session session)
          Return an InternetAddress representing the current user.
 

Constructors in javax.mail.internet with parameters of type Session
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.
 

Uses of Session in org.apache.geronimo.mail.util
 

Methods in org.apache.geronimo.mail.util with parameters of type Session
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 © 2003-2008 The Apache Software Foundation. All Rights Reserved.