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, usePartModifierpublic 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 configurationsession - 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 accountnullpublic static java.lang.String getTransportServerURL(com.openexchange.session.Session session,
int accountId)
throws com.openexchange.exception.OXException
session - The user sessionaccountId - The account IDnullcom.openexchange.exception.OXException - If transport server URL cannot be returnedpublic IMailProperties getMailProperties()
MailConfiggetMailProperties in class MailConfigpublic void setMailProperties(IMailProperties mailProperties)
MailConfigsetMailProperties 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