alt.javax.mail
Interface Session
- All Known Implementing Classes:
- MockSession, SessionImpl
- public interface Session
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.