com.indexdata.masterkey.config
public class ConfigFileLocation extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN_CONFIG_DIR_PROPERTY_NAME |
static String |
DOMAIN_CONFIG_FILE_POSTFIX |
static String |
MASTERKEY_COMPONENT_CONFIG_DIR_PARAM |
static String |
MASTERKEY_CONFIG_FILE_NAME_PARAM |
static String |
MASTERKEY_ROOT_CONFIG_DIR |
static String |
MASTERKEY_ROOT_CONFIG_DIR_PARAM |
Constructor and Description |
---|
ConfigFileLocation(javax.servlet.ServletContext context,
String serverName) |
ConfigFileLocation(javax.servlet.ServletContext context,
String serverName,
String configFileName) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Checks if the config file exists in the calculated path.
|
String |
getConfigFilePath()
Gets the full path to the configuration file, including the file name.
|
public static String MASTERKEY_ROOT_CONFIG_DIR
public static final String MASTERKEY_ROOT_CONFIG_DIR_PARAM
public static final String MASTERKEY_COMPONENT_CONFIG_DIR_PARAM
public static final String MASTERKEY_CONFIG_FILE_NAME_PARAM
public static final String DOMAIN_CONFIG_DIR_PROPERTY_NAME
public static final String DOMAIN_CONFIG_FILE_POSTFIX
public ConfigFileLocation(javax.servlet.ServletContext context, String serverName) throws IOException
context
- serverName
- Used for resolving the config directoryconfigFileName
- optionally overriding the (base) name of the config file.javax.servlet.IOException
- If any of three basic context params are missingIOException
public ConfigFileLocation(javax.servlet.ServletContext context, String serverName, String configFileName) throws IOException
IOException
public String getConfigFilePath()
public void evaluate() throws IOException
javax.servlet.IOException
IOException
Copyright © 2014. All rights reserved.