Class PropertiesParser
- java.lang.Object
-
- com.sportradar.livedata.sdk.common.settings.PropertiesParser
-
public class PropertiesParser extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertiesParser(Properties properties)
-
Method Summary
-
-
-
Constructor Detail
-
PropertiesParser
public PropertiesParser(Properties properties)
-
-
Method Detail
-
getBooleanProperty
public Boolean getBooleanProperty(String key) throws MissingPropertyException, InvalidPropertyException
-
getBooleanProperty
public Boolean getBooleanProperty(String key, boolean mandatory) throws MissingPropertyException, InvalidPropertyException
-
getDurationProperty
public org.joda.time.Duration getDurationProperty(String key) throws MissingPropertyException
- 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
public List<LimiterData> parseLimiters(String input) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getLongProperty
public Long getLongProperty(String key) throws MissingPropertyException, InvalidPropertyException
-
getLongProperty
public Long getLongProperty(String key, boolean mandatory) throws InvalidPropertyException, MissingPropertyException
-
getProperty
public String getProperty(String key) throws MissingPropertyException
- Throws:
MissingPropertyException
-
getProperty
public String getProperty(String key, boolean mandatory) throws MissingPropertyException
- Throws:
MissingPropertyException
-
parseCSVProperty
public Set<String> parseCSVProperty(String key) throws MissingPropertyException
- Throws:
MissingPropertyException
-
parseCSVProperty
public Set<String> parseCSVProperty(String key, boolean mandatory) throws MissingPropertyException
- Throws:
MissingPropertyException
-
-