alt.javax.mail

Interface Session

Known Implementing Classes:
MockSession, SessionImpl

public interface Session

Method Summary

boolean
getDebug()
Session
getDefaultInstance(Properties props)
Session
getDefaultInstance(Properties props, Authenticator authenticator)
Folder
getFolder(URLName url)
Session
getInstance(Properties props)
Session
getInstance(Properties props, Authenticator authenticator)
PasswordAuthentication
getPasswordAuthentication(URLName url)
Properties
getProperties()
String
getProperty(String name)
Provider
getProvider(String protocol)
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 url)
javax.mail.Session
getWrappedSession()
PasswordAuthentication
requestPasswordAuthentication(java.net.InetAddress addr, int port, String protocol, String prompt, String defaultUserName)
void
setDebug(boolean debug)
void
setPasswordAuthentication(URLName url, PasswordAuthentication pw)
void
setProvider(Provider provider)

Method Details

getDebug

public boolean getDebug()

getDefaultInstance

public Session getDefaultInstance(Properties props)

getDefaultInstance

public Session getDefaultInstance(Properties props,
                                  Authenticator authenticator)

getFolder

public Folder getFolder(URLName url)
            throws MessagingException

getInstance

public Session getInstance(Properties props)

getInstance

public Session getInstance(Properties props,
                           Authenticator authenticator)

getPasswordAuthentication

public PasswordAuthentication getPasswordAuthentication(URLName url)

getProperties

public Properties getProperties()

getProperty

public String getProperty(String name)

getProvider

public Provider getProvider(String protocol)
            throws NoSuchProviderException

getProviders

public Provider[] getProviders()

getStore

public Store getStore()
            throws NoSuchProviderException

getStore

public Store getStore(Provider provider)
            throws NoSuchProviderException

getStore

public Store getStore(String protocol)
            throws NoSuchProviderException

getStore

public Store getStore(URLName url)
            throws NoSuchProviderException

getTransport

public Transport getTransport()
            throws NoSuchProviderException

getTransport

public Transport getTransport(Address address)
            throws NoSuchProviderException

getTransport

public Transport getTransport(Provider provider)
            throws NoSuchProviderException

getTransport

public Transport getTransport(String protocol)
            throws NoSuchProviderException

getTransport

public Transport getTransport(URLName url)
            throws NoSuchProviderException

getWrappedSession

public javax.mail.Session getWrappedSession()

requestPasswordAuthentication

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

setDebug

public void setDebug(boolean debug)

setPasswordAuthentication

public void setPasswordAuthentication(URLName url,
                                      PasswordAuthentication pw)

setProvider

public void setProvider(Provider provider)
            throws NoSuchProviderException

Copyright © 2002 Mock Objects. All Rights Reserved.