public class RemoteAmbariStreamProvider extends Object implements org.apache.ambari.view.AmbariStreamProvider
Constructor and Description |
---|
RemoteAmbariStreamProvider(String baseUrl,
String username,
String password,
int connectTimeout,
int readTimeout) |
Modifier and Type | Method and Description |
---|---|
InputStream |
readFrom(String path,
String requestMethod,
InputStream body,
Map<String,String> headers) |
InputStream |
readFrom(String path,
String requestMethod,
String body,
Map<String,String> headers) |
public InputStream readFrom(String path, String requestMethod, String body, Map<String,String> headers) throws IOException, org.apache.ambari.view.AmbariHttpException
readFrom
in interface org.apache.ambari.view.AmbariStreamProvider
IOException
org.apache.ambari.view.AmbariHttpException
public InputStream readFrom(String path, String requestMethod, InputStream body, Map<String,String> headers) throws IOException, org.apache.ambari.view.AmbariHttpException
readFrom
in interface org.apache.ambari.view.AmbariStreamProvider
IOException
org.apache.ambari.view.AmbariHttpException
Copyright © 2022 Apache Software Foundation. All rights reserved.