Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 92581 invoked from network); 4 Apr 2009 07:21:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2009 07:21:04 -0000 Received: (qmail 22785 invoked by uid 500); 4 Apr 2009 07:21:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 22737 invoked by uid 500); 4 Apr 2009 07:21:03 -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 22726 invoked by uid 99); 4 Apr 2009 07:21:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 07:21:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.178 as permitted sender) Received: from [209.85.218.178] (HELO mail-bw0-f178.google.com) (209.85.218.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 07:20:53 +0000 Received: by bwz26 with SMTP id 26so1214873bwz.20 for ; Sat, 04 Apr 2009 00:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FhIF23dOWWAmG6A4XmQcF0R1SqXm7EQ0ubCW/grfk7E=; b=S+lZO/X1Sa2hLQkoK5kp93DU3imSm/jos8NaVyRKUr7Ov7HcQZB+Kr8DSqjGoYCYay TjNfi+UIjmsR4rvZuLrWBwnpNYLIZ+mhGE3OaUTj3JVgBEf7VaMdshaXJV9K0ixxvpdV wHCEmRACBbJy27eUkMImbh6fRMu0tBZ1cTonE= 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:content-transfer-encoding; b=vk4372UFmon0J3UYuRKJQfo/osqYu0EvwmB6vzTQmpFJW1UUAPCGN6c4U1/0yexm1h HhxXoJeoiPXmUIn5z2nHSswlPDCwsEohOgR0h364hAHovlnWvCvqckDW4ZfKiTucih0/ UKJX+eoseJEzTJQMlQKljFZ3RR83TpAAZVs8E= MIME-Version: 1.0 In-Reply-To: <237A9E01-0517-4F48-BB32-4E29B64CD01D@gmail.com> References: <237A9E01-0517-4F48-BB32-4E29B64CD01D@gmail.com> Date: Sat, 4 Apr 2009 09:20:16 +0200 Received: by 10.223.126.10 with SMTP id a10mr1769725fas.17.1238829632353; Sat, 04 Apr 2009 00:20:32 -0700 (PDT) Message-ID: <5380c69c0904040020m5843e5bdo4234db4f0f0abfc5@mail.gmail.com> Subject: Re: thoughts on the method names for the requestBody and requestBodyAndHeader etc From: Claus Ibsen To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Apr 4, 2009 at 8:38 AM, Ryan Gardner wrote: > The requestBody method makes sense (it requests a body) - but > "requestBodyAndHeader" and "requestBodyAndHeaders" etc methods make less > sense - because I'm only requesting one thing (the body). > > maybe "requestBodyWithHeader" makes more sense? for the "sendBodyAndHeader" > methods, it makes sense because you are sending two things (the body and the > header) > > although, perhaps I'm just going crazy? No it makes sense. You only get the body as reply. But to make it consistent the sendBodyAndHeader could also be named as sendBodyWithHeader. > > Ryan > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration