@@ -0,0 +1,1505 @@
+/**%0A *%0A * Copyright (c) Microsoft Corporation. All rights reserved.%0A * Licensed under the MIT License. See License.txt in the project root for license information.%0A *%0A */%0A%0Apackage com.microsoft.rest;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport okhttp3.HttpUrl;%0Aimport retrofit2.BaseUrl;%0A%0A/**%0A * An instance of this class stores information of the host of a service.%0A */%0Apublic class AutoRestBaseUrl implements BaseUrl %7B%0A    /** A template based URL with variables wrapped in %7B%7Ds. */%0A    private String template;%0A    /** a mapping from %7B%7D wrapped variables in the template and their actual values. */%0A    private Map%3CCharSequence, String%3E mappings;%0A%0A    @Override%0A    public HttpUrl url() %7B%0A        String url = template;%0A        for (Map.Entry%3CCharSequence, String%3E entry : mappings.entrySet()) %7B%0A            url = url.replace(entry.getKey(), entry.getValue());%0A        %7D%0A        mappings.clear();%0A        return HttpUrl.parse(url);%0A    %7D%0A%0A    /**%0A     * Creates an instance of a template based URL.%0A     *%0A     * @param url the template based URL to use.%0A     */%0A    public AutoRestBaseUrl(String url) %7B%0A        this.template = url;%0A        this.mappings = new HashMap%3C%3E();%0A    %7D%0A%0A    /**%0A     * Sets the value for the %7B%7D wrapped variables in the template URL.%0A     * @param matcher the %7B%7D wrapped variable to replace.%0A     * @param value the value to set for the variable.%0A     */%0A    public void set(CharSequence matcher, String value) %7B%0A        this.mappings.put(matcher, value);%0A    %7D%0A%7D%0A

Support parameterized hosts in Java