package ru.yandex.autotests.directapi.darkside.connection;

import org.apache.http.client.utils.URIBuilder;

/**
 * User: omaz
 * Date: 26.08.13
 * Конфигуратор адресов сервисов
 */
public class IntapiXmlRPCConfig extends IntapiConfig {
    public IntapiXmlRPCConfig(String predefinedHost) {
        super(predefinedHost);
    }

    public IntapiXmlRPCConfig() {
        super();
    }

    @Override
    protected void configureHost(URIBuilder builder) {
        builder.setPath("/xmlrpc");
        if (injectServiceSubDomain()) {
            builder.setHost(INTAPI_PREFIX + host.getHost());
        }
    }
}
