javax.mail
Class Session

java.lang.Object
  extended byjavax.mail.Session

public final class Session
extends Object

Version:
$Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $

Method Summary
 boolean getDebug()
           
 PrintStream getDebugOut()
           
static Session getDefaultInstance(Properties properties)
           
static Session getDefaultInstance(Properties properties, Authenticator authenticator)
           
 Folder getFolder(URLName name)
           
static Session getInstance(Properties properties)
           
static Session getInstance(Properties properties, Authenticator authenticator)
           
 PasswordAuthentication getPasswordAuthentication(URLName name)
           
 Properties getProperties()
           
 String getProperty(String property)
           
 Provider getProvider(String name)
           
 Provider[] getProviders()
           
 Store getStore()
           
 Store getStore(Provider provider)
           
 Store getStore(String protocol)
           
 Store getStore(URLName url)
           
 Transport getTransport()
           
 Transport getTransport(Address address)
           
 Transport getTransport(Provider provider)
           
 Transport getTransport(String protocol)
           
 Transport getTransport(URLName name)
           
 PasswordAuthentication requestPasswordAuthentication(InetAddress host, int port, String protocol, String prompt, String defaultUserName)
           
 void setDebug(boolean debug)
           
 void setDebugOut(PrintStream out)
           
 void setPasswordAuthentication(URLName name, PasswordAuthentication authenticator)
           
 void setProvider(Provider provider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefaultInstance

public static Session getDefaultInstance(Properties properties)

getDefaultInstance

public static Session getDefaultInstance(Properties properties,
                                         Authenticator authenticator)

getInstance

public static Session getInstance(Properties properties)

getInstance

public static Session getInstance(Properties properties,
                                  Authenticator authenticator)

getDebug

public boolean getDebug()

getDebugOut

public PrintStream getDebugOut()

getFolder

public Folder getFolder(URLName name)
                 throws MessagingException
Throws:
MessagingException

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication(URLName name)

getProperties

public Properties getProperties()

getProperty

public String getProperty(String property)

getProvider

public Provider getProvider(String name)
                     throws NoSuchProviderException
Throws:
NoSuchProviderException

getProviders

public Provider[] getProviders()

getStore

public Store getStore()
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getStore

public Store getStore(Provider provider)
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getStore

public Store getStore(String protocol)
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getStore

public Store getStore(URLName url)
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport()
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport(Address address)
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport(Provider provider)
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport(String protocol)
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport(URLName name)
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

requestPasswordAuthentication

public PasswordAuthentication requestPasswordAuthentication(InetAddress host,
                                                            int port,
                                                            String protocol,
                                                            String prompt,
                                                            String defaultUserName)

setDebug

public void setDebug(boolean debug)

setDebugOut

public void setDebugOut(PrintStream out)

setPasswordAuthentication

public void setPasswordAuthentication(URLName name,
                                      PasswordAuthentication authenticator)

setProvider

public void setProvider(Provider provider)
                 throws NoSuchProviderException
Throws:
NoSuchProviderException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.