Class ConfigurationWatcherImpl

java.lang.Object
org.codice.ddf.configuration.impl.ConfigurationWatcherImpl

@Deprecated public class ConfigurationWatcherImpl extends Object
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 Details

    • ConfigurationWatcherImpl

      public ConfigurationWatcherImpl()
      Deprecated.
  • Method Details

    • getHostname

      public String getHostname()
      Deprecated.
      Helper method to get the hostname or IP from the configuration
      Returns:
      the value associated with SystemBaseUrl.EXTERNAL_HOST property name
    • getPort

      public Integer getPort()
      Deprecated.
      Helper method to get the port from the configuration
      Returns:
      the Integer value associated with the SystemBaseUrl.EXTERNAL_HTTP_PORT or SystemBaseUrl.EXTERNAL_HTTPS_PORT property depending on the protocol
    • getProtocol

      public String 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_PROTOCOL property name
    • getSchemeFromProtocol

      public String 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_PROTOCOL property name
    • getSiteName

      public String getSiteName()
      Deprecated.
      Helper method to get the site name from the configuration
      Returns:
      the value associated with SystemInfo.SITE_NAME property name
    • getVersion

      public String getVersion()
      Deprecated.
      Helper method to get the version from the configuration
      Returns:
      the value associated with SystemInfo.VERSION property name
    • getOrganization

      public String getOrganization()
      Deprecated.
      Helper method to get the version from the configuration
      Returns:
      the value associated with property name
    • getContactEmailAddress

      public String getContactEmailAddress()
      Deprecated.
      Helper method to get the contact info from the configuration
      Returns:
      the value associated with SystemInfo.SITE_CONTACT property name
    • getConfigurationValue

      public String getConfigurationValue(String name)
      Deprecated.
      will always return null
      Method 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