[
https://issues.apache.org/jira/browse/AMBARI-4863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13914561#comment-13914561
]
Tom Beerbower commented on AMBARI-4863:
---------------------------------------
Pushed to *trunk*
> Ambari Views : Allow headers to be passed to View URLStreamProvider
> -------------------------------------------------------------------
>
> Key: AMBARI-4863
> URL: https://issues.apache.org/jira/browse/AMBARI-4863
> Project: Ambari
> Issue Type: Task
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
>
> Add ability to pass headers to org.apache.ambari.view.URLStreamProvider.
> {code}
> /**
> * Read from the input stream specified by the given URL spec.
> *
> * @param spec the String to parse as a URL
> * @param requestMethod the HTTP method (GET,POST,PUT,etc.).
> * @param params the body of the request; may be null
> * @param headers the headers of the request; may be null
> *
> * @return the input stream
> *
> * @throws IOException if an error occurred connecting to the server
> */
> public InputStream readFrom(String spec, String requestMethod, String
> params, Map<String, List<String>> headers)
> throws IOException;
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)