Interface TokenSetter

All Known Implementing Classes:
TokenSetterImpl

public interface TokenSetter
Defines methods implemented by classes taking care of the 1st step when building configuration - setting the token.
  • Method Details

    • setAccessToken

      EnvironmentSelector setAccessToken(String token)
      Sets the access token used to access feed resources (AMQP broker, Sports API, ...)
      Parameters:
      token - the access token used to access feed resources
      Returns:
      the EnvironmentSelector instance allowing the selection of target environment
    • setAccessTokenFromSdkProperties

      EnvironmentSelector setAccessTokenFromSdkProperties()
      Sets the access token used to access feed resources (AMQP broker, Sports API, ...) to value read from the sdk properties The properties file should be named "UFSdkConfiguration.properties" and localed in the application resources folder
      Returns:
      the EnvironmentSelector instance allowing the selection of target environment
    • setAccessTokenFromApplicationYaml

      EnvironmentSelector setAccessTokenFromApplicationYaml()
      Sets the access token used to access feed resources (AMQP broker, Sports API, ...) to value read from the application.yml The YAML file should be named "application.properties" and localed in the application resources folder
      Returns:
      the EnvironmentSelector instance allowing the selection of target environment
    • setAccessTokenFromSystemVar

      EnvironmentSelector setAccessTokenFromSystemVar()
      Sets the access token used to access feed resources (AMQP broker, Sports API, ...) to value read from system variable "uf.accesstoken"

      You can set the access token with the following JVM argument -Duf.accesstoken=your-access-token

      Returns:
      the EnvironmentSelector instance allowing the selection of target environment
    • buildConfigFromSdkProperties

      UofConfiguration buildConfigFromSdkProperties()
      Sets the general configuration properties to values read from configuration file. Only value which can be set through ConfigurationBuilderBase methods are set. Any values already set by methods on the current instance are overridden. Builds and returns a UofConfiguration instance The properties file should be named "UFSdkConfiguration.properties" and localed in the application resources folder
      Returns:
      builds and returns a UofConfiguration instance
    • buildConfigFromApplicationYml

      UofConfiguration buildConfigFromApplicationYml()
      Sets the general configuration properties to values read from configuration file. Only value which can be set through ConfigurationBuilderBase methods are set. Any values already set by methods on the current instance are overridden. Builds and returns a UofConfiguration instance The YAML file should be named "application.yml" and localed in the application resources folder
      Returns:
      builds and returns a UofConfiguration instance