Interface S2SConfigurationService


  • public interface S2SConfigurationService
    • Method Detail

      • getValueAsString

        String getValueAsString​(String name)
        This method gets a config value for the s2s application from a config name as a String. The name cannot be blank. This method will return the config value or null if the value cannot be found.
        Parameters:
        name - the name to retrieve the value for
        Returns:
        the configuration value or null
        Throws:
        IllegalArgumentException - if the name is blank
      • getValueAsBoolean

        Boolean getValueAsBoolean​(String name)
        This method gets a config value for the s2s application from a config name as a Boolean. The name cannot be blank. This method will return the config value or null if the value cannot be found.

        This method will return null if the parameter does not exist or is not a valid truth value.

        valid true values (case insensitive):
        • Y
        • true
        • on
        • 1
        • t
        • enabled
        valid false values (case insensitive):
        • N
        • false
        • off
        • 0
        • f
        • disabled
        Parameters:
        name - the name to retrieve the value for
        Returns:
        the configuration value or null
        Throws:
        IllegalArgumentException - if the name is blank
      • getValuesFromCommaSeparatedParam

        List<String> getValuesFromCommaSeparatedParam​(String name)
        This method gets a config values for the s2s application from a config name as a List of Strings. The name cannot be blank. This method will return the config values or null if the value cannot be found.
        Parameters:
        name - the name to retrieve the value for
        Returns:
        the configuration values or null
        Throws:
        IllegalArgumentException - if the name is blank