public interface TokenSetter
| Modifier and Type | Method and Description | 
|---|---|
UofConfiguration | 
buildConfigFromApplicationYml()
Sets the general configuration properties to values read from configuration file. 
 | 
UofConfiguration | 
buildConfigFromSdkProperties()
Sets the general configuration properties to values read from configuration file. 
 | 
EnvironmentSelector | 
setAccessToken(String token)
Sets the access token used to access feed resources (AMQP broker, Sports API, ...) 
 | 
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 
 | 
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 
 | 
EnvironmentSelector | 
setAccessTokenFromSystemVar()
Sets the access token used to access feed resources (AMQP broker, Sports API, ...) to value read from system variable "uf.accesstoken" 
 | 
EnvironmentSelector setAccessToken(String token)
token - the access token used to access feed resourcesEnvironmentSelector instance allowing the selection of target environmentEnvironmentSelector setAccessTokenFromSdkProperties()
EnvironmentSelector instance allowing the selection of target environmentEnvironmentSelector setAccessTokenFromApplicationYaml()
EnvironmentSelector instance allowing the selection of target environmentEnvironmentSelector setAccessTokenFromSystemVar()
You can set the access token with the following JVM argument -Duf.accesstoken=your-access-token
EnvironmentSelector instance allowing the selection of target environmentUofConfiguration buildConfigFromSdkProperties()
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 folderUofConfiguration instanceUofConfiguration buildConfigFromApplicationYml()
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 folderUofConfiguration instanceCopyright © 2016–2025. All rights reserved.