public class AeroGearGCMPushConfiguration extends PushConfiguration<AeroGearGCMPushConfiguration>
AeroGearGCMPushRegistrar instances.| Constructor and Description |
|---|
AeroGearGCMPushConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AeroGearGCMPushConfiguration |
addCategory(String category)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushConfiguration |
addSenderId(String senderId)
SenderIds is a collection of all GCM sender Id elements registered for
this application.
|
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 |
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.
|
Set<String> |
getSenderIds()
SenderIds is a collection of all GCM sender Id elements registered for
this application.
|
String |
getVariantID()
ID of the Variant from the AeroGear UnifiedPush Server.
|
AeroGearGCMPushConfiguration |
setAlias(String alias)
The Alias is an identifier of the user of the system.
|
AeroGearGCMPushConfiguration |
setCategories(List<String> categories)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushConfiguration |
setCategories(String... categories)
The categories specifies a channel which may be used to send messages
|
AeroGearGCMPushConfiguration |
setDeviceToken(String deviceToken)
The device token Identifies the device within its Push Network.
|
AeroGearGCMPushConfiguration |
setDeviceType(String deviceType)
Device type determines which cloud messaging system will be used by the
AeroGear Unified Push Server.
|
AeroGearGCMPushConfiguration |
setOperatingSystem(String operatingSystem)
The name of the operating system.
|
AeroGearGCMPushConfiguration |
setOsVersion(String osVersion)
The version of the operating system running.
|
AeroGearGCMPushConfiguration |
setPushServerURI(URI pushServerURI)
RegistryURL is the URL of the 3rd party application server
|
AeroGearGCMPushConfiguration |
setSecret(String secret)
Secret of the Variant from the AeroGear UnifiedPush Server.
|
AeroGearGCMPushConfiguration |
setSenderIds(String... senderIds)
SenderIds is a collection of all GCM sender Id elements registered for
this application.
|
AeroGearGCMPushConfiguration |
setVariantID(String variantID)
ID of the Variant from the AeroGear UnifiedPush Server.
|
addOnPushRegistrarCreatedListener, asRegistrar, getName, getOnAuthenticationCreatedListeners, setName, setOnPushRegistrarCreatedListenerspublic String getDeviceToken()
public AeroGearGCMPushConfiguration setDeviceToken(String deviceToken)
deviceToken - the new device tokenpublic String getVariantID()
public AeroGearGCMPushConfiguration setVariantID(String variantID)
variantID - the new variantIDpublic String getSecret()
public AeroGearGCMPushConfiguration setSecret(String secret)
secret - the new secretpublic String getDeviceType()
public AeroGearGCMPushConfiguration setDeviceType(String deviceType)
deviceType - a new device typepublic String getOperatingSystem()
public AeroGearGCMPushConfiguration setOperatingSystem(String operatingSystem)
operatingSystem - the new operating systempublic String getOsVersion()
public AeroGearGCMPushConfiguration setOsVersion(String osVersion)
osVersion - the new osVersionpublic String getAlias()
public AeroGearGCMPushConfiguration setAlias(String alias)
alias - the new aliaspublic List<String> getCategories()
public AeroGearGCMPushConfiguration setCategories(List<String> categories)
categories - the new categoriespublic AeroGearGCMPushConfiguration setCategories(String... categories)
categories - the new categoriespublic AeroGearGCMPushConfiguration addCategory(String category)
category - a new category to be added to the current list.public URI getPushServerURI()
public AeroGearGCMPushConfiguration setPushServerURI(URI pushServerURI)
pushServerURI - a new URIpublic Set<String> getSenderIds()
public AeroGearGCMPushConfiguration setSenderIds(String... senderIds)
senderIds - the new sender Ids to set.public AeroGearGCMPushConfiguration addSenderId(String senderId)
senderId - a new sender Id to add to the current set of senderIds.protected final AeroGearGCMPushRegistrar buildRegistrar()
buildRegistrar in class PushConfiguration<AeroGearGCMPushConfiguration>IllegalStateException - if pushServerURI is null or if senderIds is null or empty.Copyright © 2015 JBoss by Red Hat. All rights reserved.