alt.javax.mail
Interface Session

All Known Implementing Classes:
MockSession, SessionImpl

public interface Session


Method Summary
 boolean getDebug()
           
 Session getDefaultInstance(java.util.Properties props)
           
 Session getDefaultInstance(java.util.Properties props, Authenticator authenticator)
           
 Folder getFolder(URLName url)
           
 Session getInstance(java.util.Properties props)
           
 Session getInstance(java.util.Properties props, Authenticator authenticator)
           
 PasswordAuthentication getPasswordAuthentication(URLName url)
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String name)
           
 Provider getProvider(java.lang.String protocol)
           
 Provider[] getProviders()
           
 Store getStore()
           
 Store getStore(java.lang.String protocol)
           
 Transport getTransport()
           
 Transport getTransport(java.lang.String protocol)
           
 javax.mail.Session getWrappedSession()
           
 PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress addr, int port, java.lang.String protocol, java.lang.String prompt, java.lang.String defaultUserName)
           
 void setDebug(boolean debug)
           
 void setPasswordAuthentication(URLName url, PasswordAuthentication pw)
           
 void setProvider(Provider provider)
           
 

Method Detail

getInstance

public Session getInstance(java.util.Properties props,
                           Authenticator authenticator)

getInstance

public Session getInstance(java.util.Properties props)

getDefaultInstance

public Session getDefaultInstance(java.util.Properties props,
                                  Authenticator authenticator)

getDefaultInstance

public Session getDefaultInstance(java.util.Properties props)

setDebug

public void setDebug(boolean debug)

getDebug

public boolean getDebug()

getProviders

public Provider[] getProviders()

getProvider

public Provider getProvider(java.lang.String protocol)
                     throws NoSuchProviderException
Throws:
NoSuchProviderException

setProvider

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

getStore

public Store getStore()
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getStore

public Store getStore(java.lang.String protocol)
               throws NoSuchProviderException
Throws:
NoSuchProviderException

getFolder

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

getTransport

public Transport getTransport()
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

getTransport

public Transport getTransport(java.lang.String protocol)
                       throws NoSuchProviderException
Throws:
NoSuchProviderException

setPasswordAuthentication

public void setPasswordAuthentication(URLName url,
                                      PasswordAuthentication pw)

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication(URLName url)

requestPasswordAuthentication

public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress addr,
                                                            int port,
                                                            java.lang.String protocol,
                                                            java.lang.String prompt,
                                                            java.lang.String defaultUserName)

getProperties

public java.util.Properties getProperties()

getProperty

public java.lang.String getProperty(java.lang.String name)

getWrappedSession

public javax.mail.Session getWrappedSession()


Copyright © 2002 Mock Objects. All Rights Reserved.