public class ConfigFileReader
extends java.lang.Object
readConfigFile(String).| Constructor and Description |
|---|
ConfigFileReader() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
readConfigFile(java.lang.String configFileName)
Short version of
readConfigFile(String, boolean), passing
parameter "contentIsXML" as "false". |
static java.lang.String |
readConfigFile(java.lang.String configFileName,
boolean contentIsXML)
Reads a configuration file content in a certain sequence.
|
static java.lang.String |
readExternalConfigFile(java.lang.String configFileName,
boolean contentIsXML)
Similar to
readConfigFile(String, boolean, boolean) - but ONLY
checks for these places that are outside the content of the web application. |
static java.util.ResourceBundle |
readPropertiesFile(java.lang.String configFileName)
Reads the content of the configuration file and passes back the result
as properties file (resource bundle).
|
public static java.lang.String readConfigFile(java.lang.String configFileName)
readConfigFile(String, boolean), passing
parameter "contentIsXML" as "false".public static java.lang.String readConfigFile(java.lang.String configFileName,
boolean contentIsXML)
ValueManager.replaceSystemProperties(String, boolean).contentIsXML - Set to "true" if the config file contains XML content. Purpose: in the
config file you may add system parameters - which are processed
by ValueManager.replaceSystemProperties(String, boolean). During
the replacement characters must be correctly encoded if the file is
some XML-file (e.g. characters like "<", ">" need to be correctly
transferred to their XML representation).public static java.util.ResourceBundle readPropertiesFile(java.lang.String configFileName)
readConfigFile(String, boolean).
configFileName - (with extension!)ResourceBundle. Null in case the file cannot be found.public static java.lang.String readExternalConfigFile(java.lang.String configFileName,
boolean contentIsXML)
readConfigFile(String, boolean, boolean) - but ONLY
checks for these places that are outside the content of the web application.
This means: step 3 (classloader) and 4 (webcontent) are NOT executed.Copyright © CaptainCasa Gmbh. All Rights Reserved.