Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 21032 invoked from network); 8 Jan 2011 09:25:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jan 2011 09:25:52 -0000 Received: (qmail 41228 invoked by uid 500); 8 Jan 2011 09:25:52 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 41025 invoked by uid 500); 8 Jan 2011 09:25:51 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 41014 invoked by uid 99); 8 Jan 2011 09:25:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jan 2011 09:25:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dcheckoway@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jan 2011 09:25:46 +0000 Received: by yxl31 with SMTP id 31so8146737yxl.32 for ; Sat, 08 Jan 2011 01:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=08B/B8xRGJTgjnCKEtc0Phk4aA8gcfc2m7neqp7dQ2E=; b=n3CCvvANCFqjm80CL7MVhll22TJ81a1MbROTYxK423B3TFA9qPezhnkxcAhXwlhWIY 7U96Z/2aSW5sDmTEE1i69Oo/emrBF8PNHYUO2L6MWZru9SxIzfvCVddfWJAsZpgf1auf AU1z97VfMJPenpQUgx95/6SyBM43/H67lXlio= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DC02YD+BGMvNtb+pKswEcLppQCo2t6BO+mYGgFk2xtZK3gogDyh2mW6oHOVLxSANRJ ktk4xY4nCIeYgH1lk3gi80f1/mS+K5r4a/bQSxqA07Kc4Cd7gxLtoanMJ2nvS9c+1jeP D1NUYQ85Gr0G/GlyTyNLKqd9iy575Yqh9ggvI= MIME-Version: 1.0 Received: by 10.236.109.148 with SMTP id s20mr1374973yhg.52.1294478723585; Sat, 08 Jan 2011 01:25:23 -0800 (PST) Received: by 10.236.103.15 with HTTP; Sat, 8 Jan 2011 01:25:23 -0800 (PST) In-Reply-To: <4D282351.1000601@gmail.com> References: <1294429615923-3332393.post@n5.nabble.com> <4D282351.1000601@gmail.com> Date: Sat, 8 Jan 2011 04:25:23 -0500 Message-ID: Subject: Re: Camel-http and multiple Set-Cookie headers From: Dan Checkoway To: users@camel.apache.org Content-Type: multipart/alternative; boundary=0023547c91f77d15f90499525078 --0023547c91f77d15f90499525078 Content-Type: text/plain; charset=ISO-8859-1 How about this? http://commons.apache.org/collections/apidocs/org/apache/commons/collections/map/MultiValueMap.html That still implements Map, so users theoretically wouldn't have to change anything, or change much. And those who need to grab Set-Cookie headers could use .getCollection() to access them all. Dan On Sat, Jan 8, 2011 at 3:41 AM, Willem Jiang wrote: > Camel message header is a map, so if there are more than one value with > same key set into the header, you can see only one entry in the message > header. > Maybe we need to find other way to work around it in camel-http component. > > > On 1/8/11 3:46 AM, lauri wrote: > >> >> Hi, >> >> I'm using Camel to integrate service A to service B using camel-http. >> Service B is just an external web server that needs to set some cookies >> once >> in a while. However, if multiple Set-Cookie headers are present in B's >> responses, I'm only able to read one of them on A. The reason for this is >> that org.apache.camel.Message seems to only have methods for handling >> headers that can exist only once. >> >> So, have I completely misunderstood something here or is this just some >> kind >> of a limitation of camel-http module? >> >> Best, >> Lauri >> > > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > --0023547c91f77d15f90499525078--