1 25 26 27 package org.snipsnap.xmlrpc; 28 29 import org.radeox.util.logging.Logger; 30 31 32 39 40 public class WeblogsPingHandler extends XmlRpcSupport { 41 public static final String API_PREFIX = "weblogUpdates"; 42 43 public String getName() { 44 return API_PREFIX; 45 } 46 47 51 public String versionPing(String weblogName, String weblogUrl, String toolName, String toolVersion) { 52 Logger.debug("XML-RPC call to ping() from " + weblogName+" "+toolName+" "+toolVersion); 53 SnipSnapPing.getInstance().addChangedWeblog(weblogName, weblogUrl); 54 return ""; 55 } 56 57 61 public String ping(String weblogName, String weblogUrl) { 62 Logger.debug("XML-RPC call to ping() from " + weblogName); 63 SnipSnapPing.getInstance().addChangedWeblog(weblogName, weblogUrl); 64 return ""; 65 } 66 } 67 | Popular Tags |