[ 
http://jira.codehaus.org/browse/XFIRE-884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88625
 ] 

Julius Davies commented on XFIRE-884:
-------------------------------------

I see this committed to SVN:

Map headersMap = (Map) context.getContextualProperty(HTTP_HEADERS);
if (headersMap != null) {
  for (Iterator iter = headersMap.entrySet().iterator(); iter.hasNext();) {
    Map.Entry entry = (Entry) iter.next();
    postMethod.addRequestHeader(entry.getKey().toString(), 
entry.getValue().toString());
  }
}

I like the Object.toString()!  That could come in handy.

Is the support for several headers (so checking for instanceof Object[]) with 
the same name not desirable?

Just curious if the String[] idea was a bad one.

> Add support for custom HTTP headers
> -----------------------------------
>
>                 Key: XFIRE-884
>                 URL: http://jira.codehaus.org/browse/XFIRE-884
>             Project: XFire
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Tomasz Sztelak
>         Assigned To: Tomasz Sztelak
>             Fix For: 1.2.5
>
>         Attachments: http-header.patch
>
>
> It would be good to have a way to specify custom http headers

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to