Class PropertiesParser
java.lang.Object
com.sportradar.livedata.sdk.common.settings.PropertiesParser
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
getBooleanPropertypublic Boolean getBooleanProperty(String key) throws MissingPropertyException, InvalidPropertyException 
- 
getBooleanPropertypublic Boolean getBooleanProperty(String key, boolean mandatory) throws MissingPropertyException, InvalidPropertyException 
- 
setProperty
- 
getDurationProperty- Throws:
- MissingPropertyException
 
- 
getDurationPropertypublic org.joda.time.Duration getDurationProperty(String key, boolean mandatory) throws MissingPropertyException - Throws:
- MissingPropertyException
 
- 
getIntegerPropertypublic Integer getIntegerProperty(String key) throws MissingPropertyException, InvalidPropertyException 
- 
getIntegerPropertypublic Integer getIntegerProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException 
- 
getLevelPropertypublic ch.qos.logback.classic.Level getLevelProperty(String key) throws MissingPropertyException, InvalidPropertyException 
- 
getLevelPropertypublic ch.qos.logback.classic.Level getLevelProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException 
- 
getLimitersPropertypublic List<LimiterData> getLimitersProperty(String key) throws MissingPropertyException, InvalidPropertyException 
- 
getLimitersPropertypublic 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
 
- 
parsePrivateKeypublic 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 missing
- InvalidPropertyException- if could not parse the key
 
 
-