Class ConfigurationWatcherImpl
java.lang.Object
org.codice.ddf.configuration.impl.ConfigurationWatcherImpl
Deprecated.
As of 2.8.0, Use SystemBaseUrl and SystemInfo instead
Implementation of
org.codice.ddf.configuration.ConfigurationWatcher that allows bundles
that need to use the Configuration values and easy way to do so by injecting an instance of this
class into the Object via Blueprint (or similar).
This allows Objects to easily use a org.codice.ddf.configuration.ConfigurationWatcher
instead of be a org.codice.ddf.configuration.ConfigurationWatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationValue(String name) Deprecated.will always return nullDeprecated.Helper method to get the contact info from the configurationDeprecated.Helper method to get the hostname or IP from the configurationDeprecated.Helper method to get the version from the configurationgetPort()Deprecated.Helper method to get the port from the configurationDeprecated.Helper method to get the Protocol which includes the slashes (e.g. http:// or https://)Deprecated.Helper method to get the Scheme from the Protocol which omits everything after and including the first ':' (e.g. http or https)Deprecated.Helper method to get the site name from the configurationDeprecated.Helper method to get the version from the configuration
-
Constructor Details
-
ConfigurationWatcherImpl
public ConfigurationWatcherImpl()Deprecated.
-
-
Method Details
-
getHostname
Deprecated.Helper method to get the hostname or IP from the configuration- Returns:
- the value associated with
SystemBaseUrl.EXTERNAL_HOSTproperty name
-
getPort
Deprecated.Helper method to get the port from the configuration- Returns:
- the Integer value associated with the
SystemBaseUrl.EXTERNAL_HTTP_PORTorSystemBaseUrl.EXTERNAL_HTTPS_PORTproperty depending on the protocol
-
getProtocol
Deprecated.Helper method to get the Protocol which includes the slashes (e.g. http:// or https://)- Returns:
- the value associated with the
SystemBaseUrl.EXTERNAL_PROTOCOLproperty name
-
getSchemeFromProtocol
Deprecated.Helper method to get the Scheme from the Protocol which omits everything after and including the first ':' (e.g. http or https)- Returns:
- the String value before the first ':' character associated with the
SystemBaseUrl.EXTERNAL_PROTOCOLproperty name
-
getSiteName
Deprecated.Helper method to get the site name from the configuration- Returns:
- the value associated with
SystemInfo.SITE_NAMEproperty name
-
getVersion
Deprecated.Helper method to get the version from the configuration- Returns:
- the value associated with
SystemInfo.VERSIONproperty name
-
getOrganization
Deprecated.Helper method to get the version from the configuration- Returns:
- the value associated with
property name
-
getContactEmailAddress
Deprecated.Helper method to get the contact info from the configuration- Returns:
- the value associated with
SystemInfo.SITE_CONTACTproperty name
-
getConfigurationValue
Deprecated.will always return nullMethod to get property values from the configuration.- Returns:
- the value associated with property name passed in, null if the property name does not exist in the configuration
-