public class HelloMessageImpl extends Object implements HelloMessage
MessageType.TypeCHANNEL_IDS_FIELD, UAID_FIELDMESSSAGE_TYPE_FIELD| Constructor and Description |
|---|
HelloMessageImpl() |
HelloMessageImpl(String uaid) |
HelloMessageImpl(String uaid,
Set<String> channelIds) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChannelIds()
Channel identifiers are created on the UserAgent side and are stored by the SimplePush Server
and associated with the UserAgent.
|
MessageType.Type |
getMessageType()
Returns the Type of this message.
|
String |
getUAID()
A globally unique identifier for a UserAgent created by the SimplePush Server.
|
String |
toString() |
public HelloMessageImpl()
public HelloMessageImpl(String uaid)
public String getUAID()
HelloMessagegetUAID in interface HelloMessageString a globally unique id for a UserAgent, or an empty String if the UserAgent has not
been assigned a UAID yet or wants to reset it, which will create a new one.public Set<String> getChannelIds()
HelloMessagegetChannelIds in interface HelloMessageSet<String> a set of channelIds sent from the UserAgent, or an empty list if no channel
ids were sent.public MessageType.Type getMessageType()
MessageTypegetMessageType in interface MessageTypeType the MessageType.Type of this message.Copyright © 2014 JBoss by Red Hat. All Rights Reserved.