AeroGear SimplePush Server Protocol 0.11.0

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

java.lang.Object
  extended by org.jboss.aerogear.simplepush.protocol.impl.RegisterMessageImpl
      extended by org.jboss.aerogear.simplepush.protocol.impl.RegisterResponseImpl
All Implemented Interfaces:
MessageType, RegisterMessage, RegisterResponse

public class RegisterResponseImpl
extends RegisterMessageImpl
implements RegisterResponse


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.RegisterResponse
PUSH_ENDPOINT__FIELD, STATUS_FIELD
 
Fields inherited from interface org.jboss.aerogear.simplepush.protocol.RegisterMessage
CHANNEL_ID_FIELD
 
Fields inherited from interface org.jboss.aerogear.simplepush.protocol.MessageType
MESSSAGE_TYPE_FIELD
 
Constructor Summary
RegisterResponseImpl(String channelId, Status status, String pushEndpoint)
           
 
Method Summary
 String getPushEndpoint()
          Returns the push endpoint for this channel.
 Status getStatus()
          Returns the result of the Register call
 String toString()
           
 
Methods inherited from class org.jboss.aerogear.simplepush.protocol.impl.RegisterMessageImpl
getChannelId, getMessageType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.aerogear.simplepush.protocol.RegisterMessage
getChannelId
 
Methods inherited from interface org.jboss.aerogear.simplepush.protocol.MessageType
getMessageType
 

Constructor Detail

RegisterResponseImpl

public RegisterResponseImpl(String channelId,
                            Status status,
                            String pushEndpoint)
Method Detail

getStatus

public Status getStatus()
Description copied from interface: RegisterResponse
Returns the result of the Register call

Specified by:
getStatus in interface RegisterResponse
Returns:
String the channelId.

getPushEndpoint

public String getPushEndpoint()
Description copied from interface: RegisterResponse
Returns the push endpoint for this channel. This is the endpoint URL that is passed back to the UserAgent upon registering a channel. The UserAgent will then update the server side application of this endpoint, which the server side application will then use when it wants to trigger a notification.

Specified by:
getPushEndpoint in interface RegisterResponse
Returns:
String the endpoint which can be used to trigger notifications.

toString

public String toString()
Overrides:
toString in class RegisterMessageImpl

AeroGear SimplePush Server Protocol 0.11.0

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