Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14C2411637 for ; Thu, 21 Aug 2014 06:18:54 +0000 (UTC) Received: (qmail 43874 invoked by uid 500); 21 Aug 2014 06:18:52 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43828 invoked by uid 500); 21 Aug 2014 06:18:52 -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 43816 invoked by uid 99); 21 Aug 2014 06:18:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 06:18:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Aug 2014 06:18:48 +0000 Received: by mail-ie0-f174.google.com with SMTP id rp18so4035514iec.5 for ; Wed, 20 Aug 2014 23:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=plJZG3bdVmJuCeJ4TBLZuPuAem7KOBbRsSKXVlzov54=; b=s+dh3dyvhCWjy28kXppBIgGGsD+nQ+J0eKwkIhcY0B8weq2PdVI/9UZL0M5NBKSow0 jWcGm7ld9wgkJWCm5aGmfv78fO2EWO7tGR7VbwMAcse1XzHPfxqMiCXO+xVsJkZmygBF buV8twieOlkLsnKbo+npWPdwWWJI4xpGepcZo/APTGGyZi+AyleIPi9PSzkWzFa9CDZ4 h/lOCTDA+4tXM9i0El1801JLSKmtFd3aXhue3WRxBW913myrYhXGC1E9+/HxnnmWr7ed Bz9W3cq/qzVs1v1mv4gvQ7lAxo4c8HirfczJZvuBZhsNypxcNRfNGaocKUCpX4TC0BFv TJvg== X-Received: by 10.43.70.205 with SMTP id yh13mr156313icb.44.1408601908049; Wed, 20 Aug 2014 23:18:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.251.36 with HTTP; Wed, 20 Aug 2014 23:18:07 -0700 (PDT) In-Reply-To: <89A62A22-2684-4A4E-8324-B115395093FB@rainyday.de> References: <89A62A22-2684-4A4E-8324-B115395093FB@rainyday.de> From: Claus Ibsen Date: Thu, 21 Aug 2014 08:18:07 +0200 Message-ID: Subject: Re: Routing based on exchange header content-type To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi You can use tracer to see the messages details during routing and see what headers you have http://camel.apache.org/tracer Also mind that maybe the content type header is not 100% matching 'application/xml' etc. As sometimes they may have charset or other values included. The simple language has a contains function you can use http://camel.apache.org/simple On Wed, Aug 20, 2014 at 3:53 PM, harald wrote: > Hello Claus, > > yes you are right. But anyway it does not work. Only my last two test sce= narios had this typo and so I retried them. > > Is there a restriction that under some circumstances the headers are not = available? > > Thanks for helping! > harald > > On 20 Aug 2014, at 07:24, Claus Ibsen wrote: > >> There is a missing } in your simple expression, you need that to end >> the left hand side >> >> ${in.headers[=E2=80=98Content-Type=E2=80=99]} =3D=3D =E2=80=98a= pplication/json=E2=80=99 >> >> >> -- >> Claus Ibsen >> ----------------- >> Red Hat, Inc. >> Email: cibsen@redhat.com >> Twitter: davsclaus >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen >> hawtio: http://hawt.io/ >> fabric8: http://fabric8.io/ > --=20 Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/