public final class ConfigurationUtil extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static String |
externalGetWebConfig(javax.servlet.http.HttpSession session,
String paramName)
Read string from WebContent web.xml context-param parameter values.
|
static int |
externalGetWebConfigInt(javax.servlet.http.HttpSession session,
String paramName,
int defaultValue)
Read integer from WebContent web.xml context-param parameter values.
|
static String |
getContextPath()
Get Context Path.
|
static String |
getHost()
Get Host.
|
static String |
getWebConfig(String paramName)
Read string from WebContent web.xml context-param parameter values.
|
static String |
getWebConfig(String paramName,
String defaultValue)
Read string from WebContent web.xml context-parameter values.
|
static boolean |
getWebConfigBoolean(String paramName)
Read boolean from WebContent web.xml context-param parameter values.
|
static boolean |
getWebConfigBoolean(String paramName,
boolean defaultValue)
Read boolean from WebContent web.xml context-param parameter values.
|
static int |
getWebConfigInt(String paramName)
Read the int value of a context-param from the web.xml.
|
static int |
getWebConfigInt(String paramName,
int defaultValue)
Read the int value of a context-param from the web.xml.
|
public static String getWebConfig(String paramName)
paramName
- param-namepublic static String getWebConfig(String paramName, String defaultValue)
paramName
exists, the given defaultValue is returned.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)
session
- the sessionparamName
- the param namepublic static int externalGetWebConfigInt(javax.servlet.http.HttpSession session, String paramName, int defaultValue)
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)
paramName
- param-namepublic static boolean getWebConfigBoolean(String paramName, boolean defaultValue)
paramName
- parameter namedefaultValue
- default valuepublic static int getWebConfigInt(String paramName)
paramName
- name of the param to get the int value of.public static int getWebConfigInt(String paramName, int defaultValue)
paramName
- name of the param to get the int value of.defaultValue
- default valueCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.