AeroGear SimplePush Server Protocol 0.11.0

org.jboss.aerogear.simplepush.protocol.impl
Class HelloMessageImpl

java.lang.Object
  extended by org.jboss.aerogear.simplepush.protocol.impl.HelloMessageImpl
All Implemented Interfaces:
HelloMessage, MessageType

public class HelloMessageImpl
extends Object
implements HelloMessage


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.aerogear.simplepush.protocol.MessageType
MessageType.Type
 
Field Summary
 
Fields inherited from interface org.jboss.aerogear.simplepush.protocol.HelloMessage
CHANNEL_IDS_FIELD, UAID_FIELD
 
Fields inherited from interface org.jboss.aerogear.simplepush.protocol.MessageType
MESSSAGE_TYPE_FIELD
 
Constructor Summary
HelloMessageImpl()
           
HelloMessageImpl(String uaid)
           
HelloMessageImpl(String uaid, Set<String> channelIds)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HelloMessageImpl

public HelloMessageImpl()

HelloMessageImpl

public HelloMessageImpl(String uaid)

HelloMessageImpl

public HelloMessageImpl(String uaid,
                        Set<String> channelIds)
Method Detail

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

AeroGear SimplePush Server Protocol 0.11.0

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.