hs.hsadmin/hsarback/test/de/hsadmin/remote/RemoteTestHelper.java

26 lines
678 B
Java
Raw Normal View History

2010-10-01 21:42:49 +02:00
package de.hsadmin.remote;
import java.net.URL;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
public class RemoteTestHelper {
public static String BACKEND_URL = "https://agnes.ostwall195.de:9443/hsar/backend";
private static XmlRpcClient client;
public static XmlRpcClient getClient() throws Exception {
if (client == null) {
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("https://agnes.ostwall195.de:9443/hsar/xmlrpc/hsadmin"));
config.setEnabledForExtensions(true);
client = new XmlRpcClient();
client.setConfig(config);
}
return client;
}
}