info.aduna.gee.publication.servlets.util
Class ZpadConfUtil

java.lang.Object
  extended by info.aduna.gee.publication.servlets.util.ZpadConfUtil

public class ZpadConfUtil
extends Object


Field Summary
protected static HashMap _errorsPerHost
           
 
Constructor Summary
ZpadConfUtil()
           
 
Method Summary
static HashSet ensureErrorsLoaded(String host)
           
static boolean getBoolean(String host, String key, boolean defValue)
           
static int getInt(String host, String key, int minValue, int maxValue, int defValue)
           
static String getString(String host, String key, String defValue)
           
static void refresh(String host)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_errorsPerHost

protected static HashMap _errorsPerHost
Constructor Detail

ZpadConfUtil

public ZpadConfUtil()
Method Detail

refresh

public static void refresh(String host)

getInt

public static int getInt(String host,
                         String key,
                         int minValue,
                         int maxValue,
                         int defValue)
Parameters:
host - the virtual host
key - the key
minValue - the minimum allowed (inclusive) value
maxValue - the maximum allowed (inclusive) value
defValue - the default value
Returns:
the integer value set in the configuration file for key.

getBoolean

public static boolean getBoolean(String host,
                                 String key,
                                 boolean defValue)
Parameters:
host - the virtual host
key - the key
defValue - the default value
Returns:
the boolean value set in the configuration file for key.

getString

public static String getString(String host,
                               String key,
                               String defValue)
Parameters:
host - the virtual host
key - the key
defValue - the default value
Returns:
the String value set in the configuration file for key.

ensureErrorsLoaded

public static HashSet ensureErrorsLoaded(String host)


Copyright © 1997-2008 Aduna. All Rights Reserved.