Package alt.javax.mail
Interface Session
- All Known Implementing Classes:
MockSession
,SessionImpl
public interface Session
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getDebug()
getDefaultInstance
(Properties props) getDefaultInstance
(Properties props, Authenticator authenticator) Folder
getFolder
(URLName url) getInstance
(Properties props) getInstance
(Properties props, Authenticator authenticator) PasswordAuthentication
getPasswordAuthentication
(URLName url) getProperty
(String name) Provider
getProvider
(String protocol) Provider[]
Store
getStore()
Store
Store
getStore
(Provider provider) Store
getStore
(URLName url) getTransport
(Address address) getTransport
(String protocol) getTransport
(Provider provider) getTransport
(URLName url) javax.mail.Session
PasswordAuthentication
requestPasswordAuthentication
(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
-
getInstance
-
getInstance
-
getDefaultInstance
-
getDefaultInstance
-
setDebug
void setDebug(boolean debug) -
getDebug
boolean getDebug() -
getProviders
Provider[] getProviders() -
getProvider
- Throws:
NoSuchProviderException
-
setProvider
void setProvider(Provider provider) throws NoSuchProviderException - Throws:
NoSuchProviderException
-
getStore
Store getStore() throws NoSuchProviderException- Throws:
NoSuchProviderException
-
getStore
- Throws:
NoSuchProviderException
-
getStore
Store getStore(URLName url) throws NoSuchProviderException - Throws:
NoSuchProviderException
-
getStore
Store getStore(Provider provider) throws NoSuchProviderException - Throws:
NoSuchProviderException
-
getFolder
Folder getFolder(URLName url) throws MessagingException - Throws:
MessagingException
-
getTransport
- Throws:
NoSuchProviderException
-
getTransport
- Throws:
NoSuchProviderException
-
getTransport
- Throws:
NoSuchProviderException
-
getTransport
- Throws:
NoSuchProviderException
-
getTransport
- Throws:
NoSuchProviderException
-
setPasswordAuthentication
void setPasswordAuthentication(URLName url, PasswordAuthentication pw) -
getPasswordAuthentication
PasswordAuthentication getPasswordAuthentication(URLName url) -
requestPasswordAuthentication
PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String defaultUserName) -
getProperties
Properties getProperties() -
getProperty
-
getWrappedSession
javax.mail.Session getWrappedSession()
-