public abstract class TransportConfig extends MailConfig
TransportConfig
- The user-specific transport configuration
Provides access to global transport properties.
MailConfig.BoolCapVal, MailConfig.LoginSource, MailConfig.PasswordSource, MailConfig.ServerSource
Modifier and Type | Method and Description |
---|---|
IMailProperties |
getMailProperties()
Gets the mail properties for this mail configuration.
|
static <C extends TransportConfig> |
getTransportConfig(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.
|
applyStandardNames, equals, getAccountId, getCapabilities, getConfig, getLogin, getMailLogin, getMailServerURL, getMailServerURL, getPartModifier, getPassword, getPort, getServer, getSession, getStandardFullNames, getStandardNames, getUserIDsByMailLogin, hashCode, isSecure, parseProtocol, setAccountId, setLogin, setPassword, setPort, setSecure, setServer, setSession, toString, usePartModifier
public static final <C extends TransportConfig> C getTransportConfig(C transportConfig, com.openexchange.session.Session session, int accountId) throws com.openexchange.exception.OXException
clazz
- The transport configuration typetransportConfig
- A newly created transport configuration
session
- The session providing needed user dataaccountId
- The mail account IDcom.openexchange.exception.OXException
- If user-specific transport configuration cannot be determinedpublic static java.lang.String getTransportServerURL(com.openexchange.mailaccount.MailAccount mailAccount)
mailAccount
- The mail accountnull
public static java.lang.String getTransportServerURL(com.openexchange.session.Session session, int accountId) throws com.openexchange.exception.OXException
session
- The user sessionaccountId
- The account IDnull
com.openexchange.exception.OXException
- If transport server URL cannot be returnedpublic IMailProperties getMailProperties()
MailConfig
getMailProperties
in class MailConfig
public void setMailProperties(IMailProperties mailProperties)
MailConfig
setMailProperties
in class MailConfig
mailProperties
- The mail properties for this mail configurationpublic abstract ITransportProperties getTransportProperties()
public abstract void setTransportProperties(ITransportProperties transportProperties)
transportProperties
- The transport properties for this transport configuration