public final class ConfigurationUtil extends Object implements Serializable
WebClientConfiguration should be used instead.| Modifier and Type | Method and Description |
|---|---|
static String |
externalGetWebConfig(javax.servlet.http.HttpSession session,
String paramName)
This method is provided for backwards-compatibility.
|
static int |
externalGetWebConfigInt(javax.servlet.http.HttpSession session,
String paramName,
int defaultValue)
This method is provided for backwards-compatibility.
|
static String |
getContextPath()
Get Context Path.
|
static String |
getHost()
Get Host.
|
static String |
getWebConfig(String paramName)
This method is provided for backwards-compatibility.
|
static String |
getWebConfig(String paramName,
String defaultValue)
This method is provided for backwards-compatibility.
|
static boolean |
getWebConfigBoolean(String paramName)
This method is provided for backwards-compatibility.
|
static boolean |
getWebConfigBoolean(String paramName,
boolean defaultValue)
This method is provided for backwards-compatibility.
|
static int |
getWebConfigInt(String paramName)
This method is provided for backwards-compatibility.
|
static int |
getWebConfigInt(String paramName,
int defaultValue)
This method is provided for backwards-compatibility.
|
public static String getWebConfig(String paramName)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - param-namepublic static String getWebConfig(String paramName, String defaultValue)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - The name of the context-parameter to get the value from.defaultValue - The returned default value, if no context-paramter exists by the given name.public static String externalGetWebConfig(javax.servlet.http.HttpSession session, String paramName)
WebClientConfiguration with ConfigurationSource.GLOBAL.session - the sessionparamName - the param namepublic static int externalGetWebConfigInt(javax.servlet.http.HttpSession session,
String paramName,
int defaultValue)
WebClientConfiguration with ConfigurationSource.GLOBAL.session - the sessionparamName - the param namedefaultValue - the default value to return if context parameter does not existpublic static String getContextPath()
public static String getHost()
public static boolean getWebConfigBoolean(String paramName)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - param-namepublic static boolean getWebConfigBoolean(String paramName, boolean defaultValue)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - parameter namedefaultValue - default valuepublic static int getWebConfigInt(String paramName)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - name of the param to get the int value of.public static int getWebConfigInt(String paramName, int defaultValue)
WebClientConfiguration with ConfigurationSource.GLOBAL.paramName - name of the param to get the int value of.defaultValue - default valueCopyright © 2019 Hyland Software Germany GmbH. All rights reserved.