()
| 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 | * |
no test coverage detected