javax.mail
Class Session
java.lang.Object
javax.mail.Session
- public final class Session
- extends Object
- Version:
- $Revision: 1.3 $ $Date: 2004/03/10 10:00:27 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.