import java.util.Hashtable;
import java.util.Vector;
+import net.sourceforge.phpeclipse.wiki.internal.Configuration;
+
import org.apache.xmlrpc.XmlRpcClient;
import org.apache.xmlrpc.XmlRpcException;
import org.eclipse.core.resources.IFile;
public MetaWeblog(Configuration conf) throws MalformedURLException {
config = conf;
- xmlrpc = new XmlRpcClient(config.getUrl());
+ xmlrpc = new XmlRpcClient(config.getURL());
}
public String newPost(Configuration config, IFile file, String title, StringBuffer htmlBuffer) {
Vector params = new Vector();
String guid = null;
- params.add(config.getBlogID());
+ params.add(config.getId());
params.add(config.getUser());
params.add(config.getPassword());
params.add(message);
public void publishAttachement(String snipId, String attachementFilename, boolean delete) throws TransferFilesException {
Vector params = new Vector();
- params.add(config.getBlogID());
+ params.add(config.getId());
params.add(config.getUser());
params.add(config.getPassword());
Hashtable message = new Hashtable();
boolean deleteEntry(BlogEntry entry) throws TransferFilesException {
Vector params = new Vector(5);
// params.add(props.getProperty("blogid", "none")); //Should be the appkey, but what use is that?
- params.add(config.getBlogID());
+ params.add(config.getId());
params.add(entry.getGuid());
params.add(config.getUser());
params.add(config.getPassword());