You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2014/02/27 15:29:20 UTC

[jira] [Updated] (AMBARI-4863) Ambari Views : Allow headers to be passed to View URLStreamProvider

     [ https://issues.apache.org/jira/browse/AMBARI-4863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Beerbower updated AMBARI-4863:
----------------------------------

    Description: 
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, String> headers)
      throws IOException;
{code}

  was:
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}


> 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, String> headers)
>       throws IOException;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)