MCPcopy Create free account
hub / github.com/jgraph/drawio / getPusher

Method getPusher

src/main/java/com/mxgraph/online/AbsCache.java:109–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 *
108 */
109 protected Pusher getPusher() throws IOException
110 {
111 //log.log(severityLevel, "CLIENT-LOG:" + message);
112
113 if (pusher == null)
114 {
115 String input = SecretFacade.getSecret(PUSHER_CONFIG_FILE_PATH, getServletContext());
116 // load a properties file
117 Properties prop = new Properties();
118 prop.load(new StringReader(input));
119
120 pusher = new Pusher(prop.getProperty("app_id"),
121 prop.getProperty("key"), prop.getProperty("secret"));
122 pusher.setCluster(prop.getProperty("cluster"));
123 pusher.setEncrypted(true);
124 }
125
126 return pusher;
127 }
128
129 /**
130 *

Callers 4

sendMessageMethod · 0.95
integrate.min.jsFile · 0.80
app.min.jsFile · 0.80
DrawioFileSync.jsFile · 0.80

Calls 3

getSecretMethod · 0.80
loadMethod · 0.80
getPropertyMethod · 0.45

Tested by

no test coverage detected