|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.config.MailProperties
public final class MailProperties
MailProperties - Global mail properties read from properties file.
| Method Summary | |
|---|---|
int |
getAttachDisplaySize()
Gets the max. allowed size (in bytes) for attachment for being displayed. |
java.lang.String |
getAuthProxyDelimiter()
|
java.lang.String |
getDefaultMailProvider()
Gets the default mail provider. |
java.lang.String |
getDefaultMimeCharset()
Gets the default MIME charset. |
char |
getDefaultSeparator()
Gets the default separator character. |
static MailProperties |
getInstance()
Gets the singleton instance of MailProperties. |
java.util.Properties |
getJavaMailProperties()
Gets the JavaMail properties. |
MailConfig.LoginSource |
getLoginSource()
Gets the login source. |
int |
getMailAccessCacheIdleSeconds()
Gets the mail access cache idle seconds. |
int |
getMailAccessCacheShrinkerSeconds()
Gets the mail access cache shrinker-interval seconds. |
int |
getMailFetchLimit()
Gets the mail fetch limit. |
java.lang.String |
getMailServer()
Gets the global mail server. |
MailConfig.ServerSource |
getMailServerSource()
Gets the mail server source. |
java.lang.String |
getMasterPassword()
Gets the master password. |
int |
getMaxToCcBcc()
Gets the sent mail rate limit (how many mails can be sent in |
MailConfig.PasswordSource |
getPasswordSource()
Gets the password source. |
java.lang.String[] |
getPhishingHeaders()
Gets the phishing headers. |
java.lang.String[] |
getQuoteLineColors()
Gets the quote line colors. |
int |
getRateLimit()
Gets the sent mail rate limit (how many mails can be sent in |
boolean |
getRateLimitPrimaryOnly()
Gets the setting if the rate limit should only affect the primary account or all accounts |
java.lang.String |
getTransportServer()
Gets the global transport server |
MailConfig.ServerSource |
getTransportServerSource()
Gets the transport server source. |
int |
getWatcherFrequency()
Gets the watcher frequency. |
int |
getWatcherTime()
Gets the watcher time. |
boolean |
isAddClientIPAddress()
Checks if client's IP address should be added to mail headers on delivery as custom header "X-Originating-IP". |
boolean |
isAdminMailLoginEnabled()
Indicates if admin mail login is enabled; meaning whether admin user's try to login to mail system is permitted or not. |
boolean |
isAllowNestedDefaultFolderOnAltNamespace()
Checks if default folders (e.g. |
boolean |
isHidePOP3StorageFolders()
|
boolean |
isIgnoreSubscription()
Indicates whether subscription shall be ignored or not. |
boolean |
isSupportSubscription()
Indicates whether subscription is supported or not. |
boolean |
isUserFlagsEnabled()
Indicates if user flags are enabled. |
boolean |
isWatcherEnabled()
Indicates if watcher is enabled. |
boolean |
isWatcherShallClose()
Indicates if watcher is allowed to close exceeded connections. |
void |
loadProperties()
Exclusively loads the global mail properties |
static void |
releaseInstance()
Releases the singleton instance of MailProperties. |
void |
resetProperties()
Exclusively resets the global mail properties |
void |
waitForLoading()
Waits for loading this properties. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MailProperties getInstance()
MailProperties.
MailPropertiespublic static void releaseInstance()
MailProperties.
public void loadProperties()
throws MailConfigException
MailConfigException - If loading of global mail properties failspublic void resetProperties()
public void waitForLoading()
throws java.lang.InterruptedException
waitForLoading in interface IMailPropertiesjava.lang.InterruptedException - If another thread interrupted the current thread before or while the current thread was waiting for
loading the properties.public boolean isAllowNestedDefaultFolderOnAltNamespace()
IMailPropertiesNote that personal namespace folder must allow subfolder creation.
isAllowNestedDefaultFolderOnAltNamespace in interface IMailPropertiestrue if default folders are supposed to be created below personal namespace folder; otherwise falsepublic int getAttachDisplaySize()
IMailProperties
getAttachDisplaySize in interface IMailPropertiespublic java.lang.String getDefaultMimeCharset()
public java.lang.String getDefaultMailProvider()
public boolean isAdminMailLoginEnabled()
true if admin mail login is enabled; otherwise falsepublic char getDefaultSeparator()
IMailProperties
getDefaultSeparator in interface IMailPropertiespublic boolean isIgnoreSubscription()
IMailProperties
isIgnoreSubscription in interface IMailPropertiestrue if subscription shall be ignored; otherwise falsepublic boolean isHidePOP3StorageFolders()
public boolean isSupportSubscription()
IMailProperties
isSupportSubscription in interface IMailPropertiestrue if subscription is supported; otherwise falsepublic boolean isAddClientIPAddress()
"X-Originating-IP".
true if client's IP address should be added otherwise falsepublic java.util.Properties getJavaMailProperties()
public MailConfig.LoginSource getLoginSource()
public MailConfig.PasswordSource getPasswordSource()
public MailConfig.ServerSource getMailServerSource()
public MailConfig.ServerSource getTransportServerSource()
public int getMailFetchLimit()
IMailProperties
getMailFetchLimit in interface IMailPropertiespublic java.lang.String getMailServer()
public java.lang.String getMasterPassword()
public int getMaxToCcBcc()
public java.lang.String[] getQuoteLineColors()
public int getRateLimit()
public boolean getRateLimitPrimaryOnly()
public java.lang.String getTransportServer()
public boolean isUserFlagsEnabled()
IMailProperties
isUserFlagsEnabled in interface IMailPropertiestrue if user flags are enabled; otherwise falsepublic boolean isWatcherEnabled()
IMailProperties
isWatcherEnabled in interface IMailPropertiestrue if watcher is enabled; otherwise falsepublic int getWatcherFrequency()
IMailProperties
getWatcherFrequency in interface IMailPropertiespublic boolean isWatcherShallClose()
IMailProperties
isWatcherShallClose in interface IMailPropertiestrue if watcher is allowed to close exceeded connections; otherwise falsepublic int getWatcherTime()
IMailProperties
getWatcherTime in interface IMailPropertiespublic java.lang.String[] getPhishingHeaders()
null if none definedpublic int getMailAccessCacheShrinkerSeconds()
IMailProperties
getMailAccessCacheShrinkerSeconds in interface IMailPropertiespublic int getMailAccessCacheIdleSeconds()
IMailProperties
getMailAccessCacheIdleSeconds in interface IMailPropertiespublic final java.lang.String getAuthProxyDelimiter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||