public String getConnectedUrl() {
    if (connection instanceof HiveConnection) {
      return ((HiveConnection) connection).getConnectedUrl();
    }
    return getUrl();
  }
Connection to the specified data source.
beeline/src/java/org/apache/hive/beeline/DatabaseConnection.java