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.URLStreamProvider
IOException
public InputStream readFrom(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
readFrom
in interface org.apache.ambari.view.URLStreamProvider
IOException
public InputStream readAs(String spec, String requestMethod, String body, Map<String,String> headers, String userName) throws IOException
readAs
in interface org.apache.ambari.view.URLStreamProvider
IOException
public InputStream readAs(String spec, String requestMethod, InputStream body, Map<String,String> headers, String userName) throws IOException
readAs
in interface org.apache.ambari.view.URLStreamProvider
IOException
public InputStream readAsCurrent(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
readAsCurrent
in interface org.apache.ambari.view.URLStreamProvider
IOException
public InputStream readAsCurrent(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
readAsCurrent
in interface org.apache.ambari.view.URLStreamProvider
IOException
public HttpURLConnection getConnection(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
getConnection
in interface org.apache.ambari.view.URLConnectionProvider
IOException
public HttpURLConnection getConnection(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
getConnection
in interface org.apache.ambari.view.URLConnectionProvider
IOException
public HttpURLConnection getConnectionAs(String spec, String requestMethod, String body, Map<String,String> headers, String userName) throws IOException
getConnectionAs
in interface org.apache.ambari.view.URLConnectionProvider
IOException
public HttpURLConnection getConnectionAs(String spec, String requestMethod, InputStream body, Map<String,String> headers, String userName) throws IOException
getConnectionAs
in interface org.apache.ambari.view.URLConnectionProvider
IOException
public HttpURLConnection getConnectionAsCurrent(String spec, String requestMethod, String body, Map<String,String> headers) throws IOException
getConnectionAsCurrent
in interface org.apache.ambari.view.URLConnectionProvider
IOException
public HttpURLConnection getConnectionAsCurrent(String spec, String requestMethod, InputStream body, Map<String,String> headers) throws IOException
getConnectionAsCurrent
in interface org.apache.ambari.view.URLConnectionProvider
IOException
protected boolean isProxyCallAllowed(String spec)
spec
- the URLCopyright © 2022 Apache Software Foundation. All rights reserved.