Search in sources :

Example 1 with DynamicAttributeValue

use of net.sourceforge.processdash.ui.lib.binding.DynamicAttributeValue in project processdash by dtuma.

the class CCWebService method openConnectionImpl.

@Override
protected XmlRpcClient openConnectionImpl() throws ErrorDataValueException {
    // assume the most recent version of the server, and try to connect.
    this.urlSuffix = new DynamicAttributeValue(URL_SUFFIX_4);
    this.namespace = NAMESPACE4;
    this.testMethodName = NAMESPACE4 + TEST_METHOD_NAME;
    XmlRpcClient result = super.openConnectionImpl(true);
    // if that fails, try connecting to the older server API.
    if (result == null) {
        this.urlSuffix = new DynamicAttributeValue(URL_SUFFIX_3);
        this.namespace = NAMESPACE3;
        this.testMethodName = NAMESPACE3 + TEST_METHOD_NAME;
        result = super.openConnectionImpl(true);
    }
    return result;
}
Also used : DynamicAttributeValue(net.sourceforge.processdash.ui.lib.binding.DynamicAttributeValue) XmlRpcClient(org.apache.xmlrpc.client.XmlRpcClient)

Aggregations

DynamicAttributeValue (net.sourceforge.processdash.ui.lib.binding.DynamicAttributeValue)1 XmlRpcClient (org.apache.xmlrpc.client.XmlRpcClient)1