public class SenderClient extends Object implements JavaSender
| Constructor and Description |
|---|
SenderClient() |
SenderClient(String rootServerURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(UnifiedMessage unifiedMessage)
Sends the given payload to all installations of the referenced PushApplication.
|
protected StringBuilder |
buildUrl(String type)
Construct the URL fired against the Unified Push Server
|
String |
getServerURL() |
void |
sendTo(UnifiedMessage unifiedMessage)
Sends the given payload to a selection of installations of the referenced PushApplication.
|
void |
setServerURL(String serverURL) |
public SenderClient(String rootServerURL)
public SenderClient()
protected StringBuilder buildUrl(String type)
type - a String defining the sending method, could be "broadcast" or "selected"public void broadcast(UnifiedMessage unifiedMessage)
JavaSenderbroadcast in interface JavaSenderunifiedMessage - The UnifiedMessage to sendpublic void sendTo(UnifiedMessage unifiedMessage)
JavaSendersendTo in interface JavaSenderunifiedMessage - The UnifiedMessage to sendpublic String getServerURL()
public void setServerURL(String serverURL)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.