public class SenderClient extends Object implements JavaSender
| Constructor and Description |
|---|
SenderClient() |
SenderClient(String rootServerURL) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl()
Construct the URL fired against the Unified Push Server
|
String |
getServerURL()
Returns the current configured server URL
|
void |
send(UnifiedMessage unifiedMessage)
Sends the given payload to installations of the referenced PushApplication.
|
void |
send(UnifiedMessage unifiedMessage,
MessageResponseCallback callback)
Sends the given payload to installations of the referenced PushApplication.
|
void |
setServerURL(String serverURL)
Set the new server URL
|
public SenderClient(String rootServerURL)
public SenderClient()
protected String buildUrl()
public void send(UnifiedMessage unifiedMessage, MessageResponseCallback callback)
JavaSenderMessageResponseCallback to handle the messagesend in interface JavaSenderunifiedMessage - the UnifiedMessage to send.callback - the MessageResponseCallback.public void send(UnifiedMessage unifiedMessage)
JavaSendersend in interface JavaSenderunifiedMessage - The UnifiedMessage to send.public String getServerURL()
JavaSendergetServerURL in interface JavaSenderpublic void setServerURL(String serverURL)
JavaSendersetServerURL in interface JavaSenderserverURL - the new server url the sender will bind to.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.