public class PropertiesBasedSettings extends Object implements IFcmClientSettings
| Modifier and Type | Method and Description |
|---|---|
static PropertiesBasedSettings |
createFromDefault()
Creates the Settings from the default location.
|
static PropertiesBasedSettings |
createFromFile(Path path,
Charset charset)
Reads the Properties from a given location.
|
static PropertiesBasedSettings |
createFromProperties(Properties properties)
Reads the properties from a Properties object.
|
static PropertiesBasedSettings |
createFromSystemProperties()
Reads the Properties from the System Properties.
|
String |
getApiKey() |
String |
getFcmUrl() |
public String getFcmUrl()
getFcmUrl in interface IFcmClientSettingspublic String getApiKey()
getApiKey in interface IFcmClientSettingspublic static PropertiesBasedSettings createFromDefault()
public static PropertiesBasedSettings createFromFile(Path path, Charset charset)
path - Path of the Properties filecharset - Charset of the Properties firlepublic static PropertiesBasedSettings createFromSystemProperties()
public static PropertiesBasedSettings createFromProperties(Properties properties)
properties - Properties instanceCopyright © 2017. All rights reserved.