26 lines
678 B
Java
26 lines
678 B
Java
|
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;
|
||
|
}
|
||
|
|
||
|
}
|