public abstract class AbstractProperties extends Object
| Constructor and Description |
|---|
AbstractProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationUrl()
Get the base URL for the application front-end for external users.
|
String |
getCasDotPropertiesPathname() |
String |
getConfigDir()
Gets the user-configured directory where the INI configuration files for
Protempa are located.
|
protected int |
getIntValue(String propertyName,
int defaultValue)
Utility method to get an int from the properties file.
|
protected List<String> |
getStringListValue(String inPropertyName)
Reads in a property value as a whitespace-delimited list of items.
|
protected List<String> |
getStringListValue(String inPropertyName,
List<String> defaultValue)
Reads in a property value as a whitespace-delimited list of items.
|
protected String |
getValue(String propertyName)
Returns the String value of the given property name.
|
protected String |
getValue(String propertyName,
String defaultValue)
Returns the String value of the given property name, or the given default
if the given property name does not exist.
|
public String getCasDotPropertiesPathname()
public final String getConfigDir()
public String getApplicationUrl()
protected String getValue(String propertyName)
propertyName - The property name to fetch the value for.protected String getValue(String propertyName, String defaultValue)
propertyName - The name of the property to fetch a value for.defaultValue - The default value to return if the property name does
not exist.protected List<String> getStringListValue(String inPropertyName)
inPropertyName - The name of the property to read.null if
the property is not found.protected List<String> getStringListValue(String inPropertyName, List<String> defaultValue)
inPropertyName - The name of the property to read.defaultValue - The value to return if the property is not found.protected int getIntValue(String propertyName, int defaultValue)
propertyName - The name of the property.defaultValue - The default value to return, if the property is not
found, or is malformed.Copyright © 2012–2018 Emory University. All rights reserved.