Package alt.javax.mail
Class SessionImpl
java.lang.Object
alt.javax.mail.SessionImpl
- All Implemented Interfaces:
Session
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
SessionImpl
public SessionImpl(javax.mail.Session session)
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in interfaceSession
-
getInstance
- Specified by:
getInstance
in interfaceSession
-
getDefaultInstance
- Specified by:
getDefaultInstance
in interfaceSession
-
getDefaultInstance
- Specified by:
getDefaultInstance
in interfaceSession
-
setDebug
public void setDebug(boolean debug) -
getDebug
public boolean getDebug() -
getProviders
public Provider[] getProviders()- Specified by:
getProviders
in interfaceSession
-
getProvider
- Specified by:
getProvider
in interfaceSession
- Throws:
NoSuchProviderException
-
setProvider
public void setProvider(Provider provider) throws NoSuchProviderException - Specified by:
setProvider
in interfaceSession
- Throws:
NoSuchProviderException
-
getStore
public Store getStore() throws NoSuchProviderException -
getStore
-
getStore
public Store getStore(URLName url) throws NoSuchProviderException -
getStore
public Store getStore(Provider provider) throws NoSuchProviderException -
getFolder
public Folder getFolder(URLName url) throws MessagingException -
getTransport
- Specified by:
getTransport
in interfaceSession
- Throws:
NoSuchProviderException
-
getTransport
- Specified by:
getTransport
in interfaceSession
- Throws:
NoSuchProviderException
-
getTransport
- Specified by:
getTransport
in interfaceSession
- Throws:
NoSuchProviderException
-
getTransport
- Specified by:
getTransport
in interfaceSession
- Throws:
NoSuchProviderException
-
getTransport
- Specified by:
getTransport
in interfaceSession
- Throws:
NoSuchProviderException
-
setPasswordAuthentication
public void setPasswordAuthentication(URLName url, PasswordAuthentication pw) - Specified by:
setPasswordAuthentication
in interfaceSession
-
getPasswordAuthentication
public PasswordAuthentication getPasswordAuthentication(URLName url) - Specified by:
getPasswordAuthentication
in interfaceSession
-
requestPasswordAuthentication
public PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String defaultUserName) - Specified by:
requestPasswordAuthentication
in interfaceSession
-
getProperties
- Specified by:
getProperties
in interfaceSession
-
getProperty
- Specified by:
getProperty
in interfaceSession
-
getWrappedSession
public javax.mail.Session getWrappedSession()- Specified by:
getWrappedSession
in interfaceSession
-