ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-4863) Ambari Views : Allow headers to be passed to View URLStreamProvider
Date Thu, 27 Feb 2014 14:29:19 GMT

    [ 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)

Mime
View raw message