public class Config extends AbstractConfig
AbstractConfig.InputStreamSupplier| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTEXT_POPUP_URL |
protected static String |
RUNNING_HOSTNAME |
protected static String |
RUNNING_PORT |
protected static String |
RUNNING_URL |
protected static List<org.apache.commons.lang3.tuple.MutablePair<Integer,Integer>> |
validCodeRanges |
CLASS_PATH_RESOURCE, FILE_IS, LOGGER, properties| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String key,
Object value) |
Config |
getByPrefix(String prefix) |
Config |
getByPrefix(String prefix,
boolean truncPrefix)
Get config properties with given name prefix.
|
static Config |
getConfig()
Return Config instance, initialize it if needed.
|
static String |
getConfigFilename()
Get config filename constant.
|
String |
getContextPopupUrl() |
Integer |
getInt(String key) |
Integer |
getIntOrDefault(String key,
int defaultValue) |
String |
getRunningHostname() |
String |
getRunningPort() |
String |
getRunningUrl()
Get URL of VM where ITF is running (it can be from ITF config or from real VM name).
|
String |
getString(String key) |
String |
getStringOrDefault(String key,
String defaultValue) |
List<org.apache.commons.lang3.tuple.MutablePair<Integer,Integer>> |
getValidCodeRanges() |
Collection<Object> |
getValues() |
<T> Collection<T> |
getValues(Class<T> type)
Get config values of given class.
|
void |
merge(Properties properties)
Merge this.properties with properties parameter.
|
static List<org.apache.commons.lang3.tuple.MutablePair<Integer,Integer>> |
parseCodeRanges(String strCodes)
Parse Http Response Code Ranges string into list of [left;right] pairs.
|
getProperties, loadprotected static final String RUNNING_URL
protected static final String RUNNING_HOSTNAME
protected static final String RUNNING_PORT
protected static final String CONTEXT_POPUP_URL
public static Config getConfig()
public static String getConfigFilename()
public static List<org.apache.commons.lang3.tuple.MutablePair<Integer,Integer>> parseCodeRanges(String strCodes)
public List<org.apache.commons.lang3.tuple.MutablePair<Integer,Integer>> getValidCodeRanges()
public void merge(Properties properties)
public Config getByPrefix(String prefix, boolean truncPrefix)
public Collection<Object> getValues()
public <T> Collection<T> getValues(Class<T> type)
public String getRunningHostname()
public String getRunningPort()
public String getContextPopupUrl()
public String getRunningUrl()
Copyright © 2025. All rights reserved.