public class ViewAmbariStreamProvider extends Object implements org.apache.ambari.view.AmbariStreamProvider
Modifier | Constructor and Description |
---|---|
protected |
ViewAmbariStreamProvider(URLStreamProvider streamProvider,
AmbariSessionManager ambariSessionManager,
AmbariManagementController controller)
Construct a view Ambari stream provider.
|
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) |
protected ViewAmbariStreamProvider(URLStreamProvider streamProvider, AmbariSessionManager ambariSessionManager, AmbariManagementController controller)
streamProvider
- the underlying stream providerambariSessionManager
- the Ambari session managercontroller
- the Ambari configurationIllegalStateException
- if the Ambari stream provider can not be createdpublic 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.