Package alt.javax.mail
Interface Session
- All Known Implementing Classes:
MockSession,SessionImpl
public interface Session
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetDebug()getDefaultInstance(Properties props) getDefaultInstance(Properties props, Authenticator authenticator) FoldergetFolder(URLName url) getInstance(Properties props) getInstance(Properties props, Authenticator authenticator) PasswordAuthenticationgetPasswordAuthentication(URLName url) getProperty(String name) ProvidergetProvider(String protocol) Provider[]StoregetStore()StoreStoregetStore(Provider provider) StoregetStore(URLName url) getTransport(Address address) getTransport(String protocol) getTransport(Provider provider) getTransport(URLName url) javax.mail.SessionPasswordAuthenticationrequestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String defaultUserName) voidsetDebug(boolean debug) voidsetPasswordAuthentication(URLName url, PasswordAuthentication pw) voidsetProvider(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()
-