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 2663D17EA2 for ; Thu, 23 Oct 2014 13:19:15 +0000 (UTC) Received: (qmail 21816 invoked by uid 500); 23 Oct 2014 13:19:14 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 21768 invoked by uid 500); 23 Oct 2014 13:19:14 -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 21749 invoked by uid 99); 23 Oct 2014 13:19:14 -0000 Received: from ec2-54-191-145-13.us-west-2.compute.amazonaws.com (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Oct 2014 13:19:14 +0000 Received: from mx1-us-west.apache.org (localhost [127.0.0.1]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id B15DA25DB8 for ; Thu, 23 Oct 2014 13:19:13 +0000 (UTC) Received: by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org, from userid 114) id A721626EA7; Thu, 23 Oct 2014 13:19:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx1-us-west.apache.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=10.0 tests=RCVD_IN_DNSWL_NONE, URIBL_BLOCKED,URI_HEX autolearn=disabled version=3.4.0 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 32D6425DB8 for ; Thu, 23 Oct 2014 13:19:12 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XhIHy-0003vJ-Sr for users@camel.apache.org; Thu, 23 Oct 2014 06:18:50 -0700 Date: Thu, 23 Oct 2014 06:18:50 -0700 (PDT) From: panzerhans To: users@camel.apache.org Message-ID: <1414070330874-5757941.post@n5.nabble.com> Subject: REST marshal gson with custom Exclustion Strategy MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP I am struggling to wrap my head around how to create a Gson ExclusionStrategy that depends on a value in the Message object from the Exchange (this is stored in a Header). I am registering restConfiguration().setJsonDataFormat("json-gson") in my route definition (so Google Gson is being used for marshalling). How do I now go about for registering the Exclusion strategies in the route for the GsonDataFormat type used by Camel? -- View this message in context: http://camel.465427.n5.nabble.com/REST-marshal-gson-with-custom-Exclustion-Strategy-tp5757941.html Sent from the Camel - Users mailing list archive at Nabble.com.