Package com.hp.lft.sdk
Class SDKConfigurationFactory
java.lang.Object
com.hp.lft.sdk.SDKConfigurationFactory
Factory for creating an SDK configuration.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ModifiableSDKConfigurationCreates an SDKConfiguration with default values.static ModifiableSDKConfigurationloadConfigurationFromExternalPropertiesFile(String propertiesFilePath) Reads the SDK configuration from a properties file.static ModifiableSDKConfigurationloadConfigurationFromResources(String propertiesFileName) Reads the SDK configuration from a properties file located in the resources folder.
- 
Constructor Details- 
SDKConfigurationFactorypublic SDKConfigurationFactory()
 
- 
- 
Method Details- 
createDefaultSDKConfigurationCreates an SDKConfiguration with default values.- Returns:
- an SDKConfiguration with default values.
- Throws:
- URISyntaxException- if the syntax of the URI is invalid.
 
- 
loadConfigurationFromResourcespublic static ModifiableSDKConfiguration loadConfigurationFromResources(String propertiesFileName) throws URISyntaxException, IOException Reads the SDK configuration from a properties file located in the resources folder. For any property not found in the supplied property file, the default value is assigned.- Parameters:
- propertiesFileName- the name of the properties file to load. (The file path is always the resources folder).
- Returns:
- the configuration with the values from the supplied properties file.
- Throws:
- URISyntaxException- if the server address is not in correct URI format.
- IOException- in case the file is not found.
 
- 
loadConfigurationFromExternalPropertiesFilepublic static ModifiableSDKConfiguration loadConfigurationFromExternalPropertiesFile(String propertiesFilePath) throws URISyntaxException, IOException Reads the SDK configuration from a properties file. For any property not found in the supplied property file, the default value is assigned.- Parameters:
- propertiesFilePath- the full path of the properties file to load.
- Returns:
- the configuration with the values from the supplied properties file.
- Throws:
- URISyntaxException- if the server address is not in correct URI format.
- IOException- in case the file is not found.
 
 
-