public class SenderClient extends Object implements JavaSender
| Modifier and Type | Class and Description |
|---|---|
static class |
SenderClient.Builder
Builder to build Client with more configuration.
|
| 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
|
TrustStoreConfig |
getCustomTrustStore()
Get the custom trustStore configuration;
|
ProxyConfig |
getProxy()
Get the proxy cofniguration.
|
String |
getServerURL()
Get the used 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 server URL that is used to send Messages.
|
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()
getServerURL in interface JavaSenderpublic ProxyConfig getProxy()
ProxyConfigpublic TrustStoreConfig getCustomTrustStore()
TrustStoreConfigpublic void setServerURL(String serverURL)
setServerURL in interface JavaSenderserverURL - A server URLCopyright © 2014 JBoss by Red Hat. All Rights Reserved.