|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.api.MailConfig
com.openexchange.mail.transport.config.TransportConfig
public abstract class TransportConfig
TransportConfig - The user-specific transport configuration
Provides access to global transport properties.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.openexchange.mail.api.MailConfig |
|---|
MailConfig.BoolCapVal, MailConfig.LoginSource, MailConfig.PasswordSource, MailConfig.ServerSource |
| Method Summary | ||
|---|---|---|
IMailProperties |
getMailProperties()
Gets the mail properties for this mail configuration. |
|
static
|
getTransportConfig(java.lang.Class<? extends C> clazz,
C transportConfig,
com.openexchange.session.Session session,
int accountId)
Gets the user-specific transport configuration |
|
abstract ITransportProperties |
getTransportProperties()
Gets the transport properties for this transport configuration. |
|
static java.lang.String |
getTransportServerURL(com.openexchange.mailaccount.MailAccount mailAccount)
Gets the transport server URL appropriate to configured transport server source. |
|
static java.lang.String |
getTransportServerURL(com.openexchange.session.Session session,
int accountId)
Gets the transport server URL appropriate to configured login type |
|
void |
setMailProperties(IMailProperties mailProperties)
Sets the mail properties for this mail configuration. |
|
abstract void |
setTransportProperties(ITransportProperties transportProperties)
Sets the transport properties for this transport configuration. |
|
| Methods inherited from class com.openexchange.mail.api.MailConfig |
|---|
equals, getAccountId, getCapabilities, getConfig, getLogin, getMailLogin, getMailServerURL, getMailServerURL, getPartModifier, getPassword, getPort, getServer, getUserIDsByMailLogin, hashCode, isSecure, parseProtocol, setAccountId, setLogin, setPassword, setPort, setSecure, setServer, usePartModifier |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final <C extends TransportConfig> C getTransportConfig(java.lang.Class<? extends C> clazz,
C transportConfig,
com.openexchange.session.Session session,
int accountId)
throws MailException
clazz - The transport configuration typetransportConfig - A newly created transport configurationsession - The session providing needed user dataaccountId - The mail account ID
MailException - If user-specific transport configuration cannot be determinedpublic static java.lang.String getTransportServerURL(com.openexchange.mailaccount.MailAccount mailAccount)
mailAccount - The mail account
null
public static java.lang.String getTransportServerURL(com.openexchange.session.Session session,
int accountId)
throws MailException
session - The user sessionaccountId - The account ID
null
MailException - If transport server URL cannot be returnedpublic IMailProperties getMailProperties()
MailConfig
getMailProperties in class MailConfigpublic void setMailProperties(IMailProperties mailProperties)
MailConfig
setMailProperties in class MailConfigmailProperties - The mail properties for this mail configurationpublic abstract ITransportProperties getTransportProperties()
public abstract void setTransportProperties(ITransportProperties transportProperties)
transportProperties - The transport properties for this transport configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||