public class AeroGearGCMPushJsonConfiguration extends PushConfiguration<AeroGearGCMPushJsonConfiguration>
AeroGearGCMPushRegistrar instances.| Constructor and Description |
|---|
AeroGearGCMPushJsonConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AeroGearGCMPushJsonConfiguration |
addCategories(List<String> categories)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushJsonConfiguration |
addCategory(String category)
The categories specifies a channel which may be used to send messages
|
protected AeroGearGCMPushRegistrar |
buildRegistrar()
Protected builder method.
|
String |
getAlias()
The Alias is an identifier of the user of the system.
|
List<String> |
getCategories()
The categories specifies a channel which may be used to send messages
|
String |
getDeviceToken()
The device token Identifies the device within its Push Network.
|
String |
getDeviceType()
Device type determines which cloud messaging system will be used by the
AeroGear Unified Push Server
Defaults to ANDROID
|
String |
getFileName() |
String |
getOperatingSystem()
The name of the operating system.
|
String |
getOsVersion()
The version of the operating system running.
|
URI |
getPushServerURI()
RegistryURL is the URL of the 3rd party application server
|
String |
getSecret()
Secret of the Variant from the AeroGear UnifiedPush Server.
|
String |
getSenderId()
SenderId is a GCM sender Id (usually a project number) registered for
this application.
|
String |
getVariantID()
ID of the Variant from the AeroGear UnifiedPush Server.
|
AeroGearGCMPushJsonConfiguration |
loadConfigJson(android.content.Context context)
Load push unified push informations from assets/push-config.json
|
AeroGearGCMPushJsonConfiguration |
setAlias(String alias)
The Alias is an identifier of the user of the system.
|
AeroGearGCMPushJsonConfiguration |
setCategories(List<String> categories)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushJsonConfiguration |
setCategories(String... categories)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushJsonConfiguration |
setDeviceType(String deviceType)
Device type determines which cloud messaging system will be used by the
AeroGear Unified Push Server.
|
void |
setFileName(String fileName) |
AeroGearGCMPushJsonConfiguration |
setOperatingSystem(String operatingSystem)
The name of the operating system.
|
AeroGearGCMPushJsonConfiguration |
setSenderId(String senderId)
SenderId is a GCM sender Id (usually a project number) registered for
this application.
|
addOnPushRegistrarCreatedListener, asRegistrar, getName, getOnAuthenticationCreatedListeners, setName, setOnPushRegistrarCreatedListenerspublic String getFileName()
public void setFileName(String fileName)
public URI getPushServerURI()
public String getSenderId()
public AeroGearGCMPushJsonConfiguration setSenderId(String senderId)
senderId - a new sender Id to add to the current set of senderIds.public String getVariantID()
public String getSecret()
public String getDeviceToken()
public String getDeviceType()
public AeroGearGCMPushJsonConfiguration setDeviceType(String deviceType)
deviceType - a new device typepublic String getOperatingSystem()
public AeroGearGCMPushJsonConfiguration setOperatingSystem(String operatingSystem)
operatingSystem - the new operating systempublic String getOsVersion()
public String getAlias()
public AeroGearGCMPushJsonConfiguration setAlias(String alias)
alias - the new aliaspublic List<String> getCategories()
public AeroGearGCMPushJsonConfiguration setCategories(List<String> categories)
categories - the new categoriespublic AeroGearGCMPushJsonConfiguration addCategories(List<String> categories)
categories - add categoriespublic AeroGearGCMPushJsonConfiguration setCategories(String... categories)
categories - the new categoriespublic AeroGearGCMPushJsonConfiguration addCategory(String category)
category - a new category to be added to the current list.public AeroGearGCMPushJsonConfiguration loadConfigJson(android.content.Context context)
{
"pushServerURL": "pushServerURL (e.g http(s)//host:port/context)",
"android": {
"senderID": "senderID (e.g Google Project ID only for android)",
"variantID": "variantID (e.g. 1234456-234320)",
"variantSecret": "variantSecret (e.g. 1234456-234320)"
}
context - your application's contextprotected final AeroGearGCMPushRegistrar buildRegistrar()
buildRegistrar in class PushConfiguration<AeroGearGCMPushJsonConfiguration>IllegalStateException - if pushServerURI, SenderID, Variant or VariantSecret is null or empty.Copyright © 2016 JBoss by Red Hat. All rights reserved.