Package net.imgseek.server.demo.server

Source Code of net.imgseek.server.demo.server.IskDaemonClient

package net.imgseek.server.demo.server;

import java.net.MalformedURLException;
import java.net.URL;

import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

public class IskDaemonClient {
  public XmlRpcClient client;

  public IskDaemonClient() {

    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
    try {
      config.setServerURL(new URL("http://127.0.0.1:31128/RPC"));
    } catch (MalformedURLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } // isk-daemon
      // XML-RPC
      // endpoint
      // URL
    config.setEnabledForExtensions(true);
    this.client = new XmlRpcClient();
    this.client.setConfig(config);

  }
}
TOP

Related Classes of net.imgseek.server.demo.server.IskDaemonClient

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.