Package com.saperion.ngc.util
Class ConfigurationUtil
java.lang.Object
com.saperion.ngc.util.ConfigurationUtil
- All Implemented Interfaces:
- Serializable
Utility class used to load configuration parameters from webclient configuration.
 This class is provided for backwards-compatibility. 
WebClientConfiguration should be used instead.- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringexternalGetWebConfig(jakarta.servlet.http.HttpSession session, String paramName) This method is provided for backwards-compatibility.static intexternalGetWebConfigInt(jakarta.servlet.http.HttpSession session, String paramName, int defaultValue) This method is provided for backwards-compatibility.static StringGet Context Path.static StringgetHost()Get Host.static StringgetWebConfig(String paramName) This method is provided for backwards-compatibility.static StringgetWebConfig(String paramName, String defaultValue) This method is provided for backwards-compatibility.static booleangetWebConfigBoolean(String paramName) This method is provided for backwards-compatibility.static booleangetWebConfigBoolean(String paramName, boolean defaultValue) This method is provided for backwards-compatibility.static intgetWebConfigInt(String paramName) This method is provided for backwards-compatibility.static intgetWebConfigInt(String paramName, int defaultValue) This method is provided for backwards-compatibility.
- 
Method Details- 
getWebConfigThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- paramName- param-name
- Returns:
- param-value or null if the corresponding value does not exist.
 
- 
getWebConfigThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- 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.
- Returns:
- The context-param value or the default value.
 
- 
externalGetWebConfigpublic static String externalGetWebConfig(jakarta.servlet.http.HttpSession session, String paramName) This method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- session- the session
- paramName- the param name
- Returns:
- param-value or null if the corresponding value does not exist.
 
- 
externalGetWebConfigIntpublic static int externalGetWebConfigInt(jakarta.servlet.http.HttpSession session, String paramName, int defaultValue) This method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- session- the session
- paramName- the param name
- defaultValue- the default value to return if context parameter does not exist
- Returns:
- param-value or the specified defaultValue if the corresponding value does not exist.
 
- 
getContextPathGet Context Path.- Returns:
- contextPath
 
- 
getHostGet Host.- Returns:
- host
 
- 
getWebConfigBooleanThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- paramName- param-name
- Returns:
- param-value
 
- 
getWebConfigBooleanThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- paramName- parameter name
- defaultValue- default value
- Returns:
- param-value as boolean or defaultValue if context-param does not exist.
 
- 
getWebConfigIntThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- paramName- name of the param to get the int value of.
- Returns:
- int value of the given param-name. If a NumberFormatException is thrown this method returns -1.
 
- 
getWebConfigIntThis method is provided for backwards-compatibility. The configuration values are read usingWebClientConfigurationwithConfigurationSource.GLOBAL.- Parameters:
- paramName- name of the param to get the int value of.
- defaultValue- default value
- Returns:
- int value of the given param-name. If a NumberFormatException is thrown this method returns -1.
 
 
-