19 package org.turro.push.sender;
21 import java.net.MalformedURLException;
22 import java.net.URISyntaxException;
23 import java.util.function.Consumer;
24 import java.util.logging.Level;
25 import java.util.logging.Logger;
26 import org.turro.annotation.ElephantPlugin;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.http.URLUtil;
29 import org.turro.push.PushMessage;
30 import org.turro.string.Strings;
36 @ElephantPlugin(label =
"pool")
40 protected void doSend(String title, String message, String link, Consumer onFinish) {
41 if(!assistants.isEmpty()) {
46 }
catch (URISyntaxException | MalformedURLException ex) {
47 Logger.getLogger(
PushPool.class.getName()).log(Level.SEVERE,
null, ex);
static String getServerUrl(String scheme)
static String absolute(String appServer, String path)
static PushMessage title(String title)
PushMessage click(String target)
PushMessage message(String message)
void send(Consumer onFinish)
void doSend(String title, String message, String link, Consumer onFinish)