camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donatello Santoro (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-302) Added support for the management of the Http headers
Date Wed, 16 Apr 2008 21:25:43 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42328#action_42328
] 

Donatello Santoro commented on CAMEL-302:
-----------------------------------------

Hi Claus. I have given a glance to the HttpBinding and I believe whether to add a list of
headers to ignore is not a bad idea. But I think that perhaps the choice to say what to ignore
is not winning in many cases. For example, in my case I use the map of the message to exchange
about ten information among a component to the other, while I would be wanting to send as
header http only "SOAPAction." 

Therefore instead of saying what to exclude is it would be better to say what to include is.
Does thing think of it?

> Added support for the management of the Http headers
> ----------------------------------------------------
>
>                 Key: CAMEL-302
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-302
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-http
>    Affects Versions: 1.2.0
>            Reporter: Donatello Santoro
>            Priority: Minor
>         Attachments: httpHeaderPatch.patch
>
>
> The HttpProducer checks if in the map of the message there is the property named "org.apache.camel.component.http.header".
This property must contain a map of String, that will be added to the header of the message
Http.
> Then, in a component of Camel it will be possible to write:
> public void process(Exchange exchange) throws Exception {
>     Map<String,String> headerHttpMap = new HashMap<String,String>();    
>     exchange.getIn().setHeader("org.apache.camel.component.http.header", headerHttpMap);
>         
>     headerHttpMap.put("SOAPAction", "testAction");
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message