public class SenderClient extends Object implements JavaSender
| Modifier and Type | Class and Description |
|---|---|
static class |
SenderClient.Builder
Builder to build Client with more configuration.
|
| 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.
|
static SenderClient.Builder |
withRootServerURL(String rootServerURL) |
public static SenderClient.Builder withRootServerURL(String rootServerURL)
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()
TrustStoreConfigCopyright © 2014 JBoss by Red Hat. All Rights Reserved.