public class ViewURLStreamProvider extends Object implements org.apache.ambari.view.URLStreamProvider, org.apache.ambari.view.URLConnectionProvider
| Modifier | Constructor and Description |
|---|---|
protected |
ViewURLStreamProvider(org.apache.ambari.view.ViewContext viewContext,
URLStreamProvider streamProvider)
Construct a view URL stream provider.
|
protected ViewURLStreamProvider(org.apache.ambari.view.ViewContext viewContext,
URLStreamProvider streamProvider)
viewContext - the associated view contextstreamProvider - the underlying stream providerpublic InputStream readFrom(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
readFrom in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic InputStream readFrom(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
readFrom in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic InputStream readAs(String spec, String requestMethod, String body, Map<String,String> headers, String userName) throws IOException
readAs in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic InputStream readAs(String spec, String requestMethod, InputStream body, Map<String,String> headers, String userName) throws IOException
readAs in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic InputStream readAsCurrent(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
readAsCurrent in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic InputStream readAsCurrent(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
readAsCurrent in interface org.apache.ambari.view.URLStreamProviderIOExceptionpublic HttpURLConnection getConnection(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
getConnection in interface org.apache.ambari.view.URLConnectionProviderIOExceptionpublic HttpURLConnection getConnection(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
getConnection in interface org.apache.ambari.view.URLConnectionProviderIOExceptionpublic HttpURLConnection getConnectionAs(String spec, String requestMethod, String body, Map<String,String> headers, String userName) throws IOException
getConnectionAs in interface org.apache.ambari.view.URLConnectionProviderIOExceptionpublic HttpURLConnection getConnectionAs(String spec, String requestMethod, InputStream body, Map<String,String> headers, String userName) throws IOException
getConnectionAs in interface org.apache.ambari.view.URLConnectionProviderIOExceptionpublic HttpURLConnection getConnectionAsCurrent(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
getConnectionAsCurrent in interface org.apache.ambari.view.URLConnectionProviderIOExceptionpublic HttpURLConnection getConnectionAsCurrent(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
getConnectionAsCurrent in interface org.apache.ambari.view.URLConnectionProviderIOExceptionprotected boolean isProxyCallAllowed(String spec)
spec - the URLCopyright © 2022 Apache Software Foundation. All rights reserved.