Package de.xima.fc.api.system
Class MsPropertiesAPI
java.lang.Object
de.xima.fc.api.ASubAPI
de.xima.fc.api.system.MsPropertiesAPI
API for accessing properties of the properties file on the master server.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an optional of the property with the given key in the properties file with the given file name.getByKeyPrefix
(String fileName, String keyPrefix) Gets all the properties that have keys that start with the given prefix from the properties file with the given file name.Gets all the properties that have keys that are contained within the given key set from the properties file with the given file name.Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
MsPropertiesAPI
public MsPropertiesAPI()
-
-
Method Details
-
getByKey
Gets an optional of the property with the given key in the properties file with the given file name.- Parameters:
fileName
- of the properties file.key
- of the property within the properties file.- Returns:
- An empty
Optional
if the property has not been set & an optional with the property value if it has been set.
-
getByKeys
Gets all the properties that have keys that are contained within the given key set from the properties file with the given file name.- Parameters:
fileName
- of the properties file.keys
- Set of all the property keys.- Returns:
- A map with all properties values. Each property value may be empty if it has not been set.
-
getByKeyPrefix
Gets all the properties that have keys that start with the given prefix from the properties file with the given file name.- Parameters:
fileName
- of the properties file.keyPrefix
- prefix of the property keys.- Returns:
- A map with all matching properties values.
-