@Override
  public InputStream readFrom(String path, String requestMethod, String body, Map<String, String> headers) throws IOException, AmbariHttpException {
    return getInputStream(urlStreamProvider.processURL(getUrl(path), requestMethod, body, addHeaders(headers)));
  }
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