org.jboss.aerogear.simplepush.protocol.impl
Class HelloMessageImpl
java.lang.Object
org.jboss.aerogear.simplepush.protocol.impl.HelloMessageImpl
- All Implemented Interfaces:
- HelloMessage, MessageType
public class HelloMessageImpl
- extends Object
- implements HelloMessage
HelloMessageImpl
public HelloMessageImpl()
HelloMessageImpl
public HelloMessageImpl(String uaid)
HelloMessageImpl
public HelloMessageImpl(String uaid,
Set<String> channelIds)
getUAID
public String getUAID()
- Description copied from interface:
HelloMessage
- A globally unique identifier for a UserAgent created by the SimplePush Server.
- Specified by:
getUAID in interface HelloMessage
- Returns:
String 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.
getChannelIds
public Set<String> getChannelIds()
- Description copied from interface:
HelloMessage
- Channel identifiers are created on the UserAgent side and are stored by the SimplePush Server
and associated with the UserAgent. Every channelId has a version and an endpoint associated
with it.
- Specified by:
getChannelIds in interface HelloMessage
- Returns:
Set<String> a set of channelIds sent from the UserAgent, or an empty list if no channel
ids were sent.
getMessageType
public MessageType.Type getMessageType()
- Description copied from interface:
MessageType
- Returns the Type of this message.
- Specified by:
getMessageType in interface MessageType
- Returns:
Type the MessageType.Type of this message.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.