private String getUrl(String path){
    String basePath = baseUrl;
    return path.startsWith("/") ? basePath + path : basePath + "/" + path;
  }
Provider of an input stream for a request to the Remote Ambari server.
ambari-server/src/main/java/org/apache/ambari/server/view/RemoteAmbariStreamProvider.java