protected ViewAmbariStreamProvider createAmbariStreamProvider() {
    ComponentSSLConfiguration sslConfiguration = ComponentSSLConfiguration.instance();
    org.apache.ambari.server.controller.internal.URLStreamProvider streamProvider =
        new org.apache.ambari.server.controller.internal.URLStreamProvider(
            configuration.getViewAmbariRequestConnectTimeout(),
            configuration.getViewAmbariRequestReadTimeout(),
            sslConfiguration.getTruststorePath(),
            sslConfiguration.getTruststorePassword(),
            sslConfiguration.getTruststoreType());
    return new ViewAmbariStreamProvider(streamProvider, ambariSessionManager, AmbariServer.getController());
  }
Factory method to create a view Ambari stream provider.

@return a new view Ambari stream provider
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java