com.hs.mail.container.config
Class Config

java.lang.Object
  extended by 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

Field Summary
static String ZIPFILE_EXTENSION
           
 
Constructor Summary
Config()
           
 
Method Summary
 void afterPropertiesSet()
           
static InetAddressMatcher getAuthorizedNetworks()
           
static String getAuthScheme()
           
static boolean getBooleanProperty(String key, boolean defaultValue)
           
static File getDataDirectory()
           
static File getDataFile(Date date, long physmessageid)
           
static Set<String> getDefaultCacheFields()
           
static String getDefaultDomain()
           
static long getDefaultQuota()
           
static String[] getDomains()
           
static File getFileProperty(String key, String file)
           
static String getHelloName()
           
static String getHostName()
           
static long getMaxMessageSize()
           
static int getMaxRcptCount()
           
static long getNumberProperty(String key, long defaultValue)
           
static String getPostmaster()
           
static Properties getProperties()
           
static String getProperty(String key, String defaultValue)
           
static File getSnapshotDirectory()
           
static File getSpoolDirectory()
           
static SSLContext getSSLContext()
           
static String getSubDirectory(Date date, long physmessageid)
           
static File getTempDirectory()
           
static boolean isLocal(String domain)
           
static boolean isSaslAuthEnabled()
           
static String replaceByProperties(String source)
           
 void setInitData(boolean initData)
           
 void setProperties(Properties properties)
           
static void setSpoolDirectory(File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZIPFILE_EXTENSION

public static final String ZIPFILE_EXTENSION
See Also:
Constant Field Values
Constructor Detail

Config

public Config()
Method Detail

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.