camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: [DISCUSS] - Camel 2.0 - Case insensitive headers on Camel Message
Date Mon, 10 Aug 2009 12:02:56 GMT
2009/8/10 Roman Kalukiewicz <roman.kalukiewicz@gmail.com>:
> Just few general comments on the topic here:
>
> 1) My impression is that we are trying to solve problem that doesn't
> exist. No one would expect that getting "foo" header should retrieve
> what was put under "FOO" key. If we want to have guarantee that it
> works properly people should use constants for it. It is the way that
> Java world solves those problems
> 2) If we create CaseInsenstiveMap class we will fail to obey Map
> contract. Let's take a look at Map.containsKey() method's contract in
> javadoc. And my impression is that we want to treat headers as a Map,
> don't we?
>
> In protocols that has case-insensitive headers (like http) I believe
> component should take care of it by (for example) setting headers
> using lowercase keys only (for example) and it should be clearly
> stated in component's documentation, as in Camel components are
> responsible for handling protocol-specific features.

I think camel should preserve what its given by default though. e.g.
passing requests from HTTP or email into Camel shouldn't rename
headers IMHO

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message