com.hs.mail.container.config
Class Config
java.lang.Object
com.hs.mail.container.config.Config
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
public class Config
- extends Object
- implements org.springframework.beans.factory.InitializingBean
Provides a number of properties to the server.
- Since:
- Jun 3, 2010
- Author:
- Won Chul Doh
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZIPFILE_EXTENSION
public static final String ZIPFILE_EXTENSION
- See Also:
- Constant Field Values
Config
public Config()
setInitData
public void setInitData(boolean initData)
getProperties
public static Properties getProperties()
setProperties
public void setProperties(Properties properties)
getDataDirectory
public static File getDataDirectory()
getSubDirectory
public static String getSubDirectory(Date date,
long physmessageid)
getDataFile
public static File getDataFile(Date date,
long physmessageid)
throws IOException
- Throws:
IOException
getTempDirectory
public static File getTempDirectory()
getSpoolDirectory
public static File getSpoolDirectory()
setSpoolDirectory
public static void setSpoolDirectory(File dir)
getSnapshotDirectory
public static File getSnapshotDirectory()
getAuthScheme
public static String getAuthScheme()
getDefaultCacheFields
public static Set<String> getDefaultCacheFields()
getDefaultQuota
public static long getDefaultQuota()
getDomains
public static String[] getDomains()
getDefaultDomain
public static String getDefaultDomain()
isLocal
public static boolean isLocal(String domain)
getHostName
public static String getHostName()
getHelloName
public static String getHelloName()
getAuthorizedNetworks
public static InetAddressMatcher getAuthorizedNetworks()
getPostmaster
public static String getPostmaster()
getMaxMessageSize
public static long getMaxMessageSize()
getMaxRcptCount
public static int getMaxRcptCount()
isSaslAuthEnabled
public static boolean isSaslAuthEnabled()
getSSLContext
public static SSLContext getSSLContext()
getProperty
public static String getProperty(String key,
String defaultValue)
getFileProperty
public static File getFileProperty(String key,
String file)
throws IOException
- Throws:
IOException
getNumberProperty
public static long getNumberProperty(String key,
long defaultValue)
getBooleanProperty
public static boolean getBooleanProperty(String key,
boolean defaultValue)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
replaceByProperties
public static String replaceByProperties(String source)
Copyright © 2011. All Rights Reserved.