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

Claus Ibsen commented on CAMEL-1886:
------------------------------------

I had another implementation that was compacter and in a single class.

Attached as AnotherCaseInsensitiveMap.java
However its issue is to retain the case of the keys we need to override 
entrySet and use the original keys.
That works, however then scripting engines such as Freemarker have an issue 
doing lookup. But I just got that resolved using a 2nd lookup using a pseudo 
lookup.

> Lookup headers from a Camel Message should be case agnostic
> -----------------------------------------------------------
>
>                 Key: CAMEL-1886
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1886
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: CAMEL_1886.patch
>
>
> Today the case matter so: getHeader("Foo") and getHeader("foo") is not the 
> same.
> And for some protocols the header case do not matter such as
> - http
> - mail
> etc.
> And who would in real life want to send 2 headers that are different only 
> depending on the case
> - Foo=me
> - foo=you

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

Reply via email to