public abstract class AbstractProperties extends Object
| Constructor and Description |
|---|
AbstractProperties()
Loads the application configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationUrl()
Get the base URL for the application front-end for external users.
|
String |
getBuildNumber() |
String |
getCasLoginUrl() |
String |
getCasLogoutUrl() |
String |
getCasUrl() |
String |
getConfigDir() |
List<String> |
getDefaultSystemPropositions()
Gets the default list of system propositions for the application.
|
String |
getIncrementalVersion() |
protected int |
getIntValue(String propertyName,
int defaultValue)
Utility method to get an int from the properties file.
|
String |
getMajorVersion() |
String |
getMinorVersion() |
abstract String |
getProxyCallbackServer() |
String |
getQualifier() |
String |
getStage() |
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.
|
SupportUri |
getSupportUri()
Get the support email address for the application.
|
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 AbstractProperties()
/etc/eureka, may optionally have an
application.properties file within it that overrides the fallback
configuration for each configuration property that is specified. The
eureka.config.dir system property allows specifying an
alternative configuration directory.public String getConfigDir()
public String getApplicationUrl()
public abstract String getProxyCallbackServer()
public String getCasUrl()
public String getCasLoginUrl()
public String getCasLogoutUrl()
public String getMajorVersion()
public String getMinorVersion()
public String getIncrementalVersion()
public String getQualifier()
public String getBuildNumber()
public String getStage()
public SupportUri getSupportUri()
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–2016 Emory University. All rights reserved.