Package com.axelor.mail
Interface MailAccount
-
- All Known Implementing Classes:
AbstractMailAccount
,ImapAccount
,Pop3Account
,SmtpAccount
public interface MailAccount
TheMailAccount
provides a single definitiongetSession()
to create account specificSession
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.mail.Session
getSession()
Get aSession
for this account.
The account implementation can decide whether to cache the session instance or not.void
setConnectionTimeout(int connectionTimeout)
Socket connection timeout value in milliseconds.void
setProperties(Properties properties)
Set additional properties.void
setTimeout(int timeout)
Socket read timeout value in milliseconds.
-
-
-
Method Detail
-
setConnectionTimeout
void setConnectionTimeout(int connectionTimeout)
Socket connection timeout value in milliseconds.- Parameters:
connectionTimeout
- timeout value
-
setTimeout
void setTimeout(int timeout)
Socket read timeout value in milliseconds.- Parameters:
timeout
- timeout value
-
setProperties
void setProperties(Properties properties)
Set additional properties.- Parameters:
properties
- the properties to set
-
getSession
javax.mail.Session getSession()
Get aSession
for this account.
The account implementation can decide whether to cache the session instance or not.- Returns:
- a
Session
instance.
-
-