Class PropertiesParser
java.lang.Object
com.sportradar.livedata.sdk.common.settings.PropertiesParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()getBooleanProperty(String key) getBooleanProperty(String key, boolean mandatory) org.joda.time.Durationorg.joda.time.DurationgetDurationProperty(String key, boolean mandatory) getIntegerProperty(String key) getIntegerProperty(String key, boolean mandatory) ch.qos.logback.classic.LevelgetLevelProperty(String key) ch.qos.logback.classic.LevelgetLevelProperty(String key, boolean mandatory) getLimitersProperty(String key, boolean mandatory) getProperty(String key) getProperty(String key, boolean mandatory) parseCSVProperty(String key) parseCSVProperty(String key, boolean mandatory) parseLimiters(String input) parsePrivateKey(String key) Getting private key from the property and parses toRSAPrivateKey.voidsetProperty(String key, String value)
-
Constructor Details
-
PropertiesParser
-
-
Method Details
-
entrySet
-
getBooleanProperty
public Boolean getBooleanProperty(String key) throws MissingPropertyException, InvalidPropertyException -
getBooleanProperty
public Boolean getBooleanProperty(String key, boolean mandatory) throws MissingPropertyException, InvalidPropertyException -
setProperty
-
getDurationProperty
- Throws:
MissingPropertyException
-
getDurationProperty
public org.joda.time.Duration getDurationProperty(String key, boolean mandatory) throws MissingPropertyException - Throws:
MissingPropertyException
-
getIntegerProperty
public Integer getIntegerProperty(String key) throws MissingPropertyException, InvalidPropertyException -
getIntegerProperty
public Integer getIntegerProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException -
getLevelProperty
public ch.qos.logback.classic.Level getLevelProperty(String key) throws MissingPropertyException, InvalidPropertyException -
getLevelProperty
public ch.qos.logback.classic.Level getLevelProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException -
getLimitersProperty
public List<LimiterData> getLimitersProperty(String key) throws MissingPropertyException, InvalidPropertyException -
getLimitersProperty
public List<LimiterData> getLimitersProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException -
parseLimiters
- Throws:
IllegalArgumentException
-
getProperty
- Throws:
MissingPropertyException
-
getProperty
- Throws:
MissingPropertyException
-
parseCSVProperty
- Throws:
MissingPropertyException
-
parseCSVProperty
- Throws:
MissingPropertyException
-
parsePrivateKey
public RSAPrivateKey parsePrivateKey(String key) throws MissingPropertyException, InvalidPropertyException Getting private key from the property and parses toRSAPrivateKey.- Parameters:
key-Stringkey of the property- Returns:
RSAPrivateKeyparsed private key- Throws:
MissingPropertyException- if property is missingInvalidPropertyException- if could not parse the key
-