org.jboss.aerogear.simplepush.protocol.impl
Class RegisterResponseImpl
java.lang.Object
org.jboss.aerogear.simplepush.protocol.impl.RegisterMessageImpl
org.jboss.aerogear.simplepush.protocol.impl.RegisterResponseImpl
- All Implemented Interfaces:
- MessageType, RegisterMessage, RegisterResponse
public class RegisterResponseImpl
- extends RegisterMessageImpl
- implements RegisterResponse
RegisterResponseImpl
public RegisterResponseImpl(String channelId,
Status status,
String pushEndpoint)
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
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.