Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 91426 invoked from network); 29 Jul 2008 05:20:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jul 2008 05:20:29 -0000 Received: (qmail 13175 invoked by uid 500); 29 Jul 2008 05:20:28 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 13117 invoked by uid 500); 29 Jul 2008 05:20:28 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 13092 invoked by uid 99); 29 Jul 2008 05:20:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 22:20:28 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 05:19:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D4F7234C183 for ; Mon, 28 Jul 2008 22:20:00 -0700 (PDT) Message-ID: <2063971210.1217308800381.JavaMail.jira@brutus> Date: Mon, 28 Jul 2008 22:20:00 -0700 (PDT) From: "William Tam (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-766) Create header filter strategy that can be easily extended In-Reply-To: <1481341527.1217308560275.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] William Tam updated CAMEL-766: ------------------------------ Attachment: patch.txt > Create header filter strategy that can be easily extended > --------------------------------------------------------- > > Key: CAMEL-766 > URL: https://issues.apache.org/activemq/browse/CAMEL-766 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core, camel-cxf, camel-http, camel-jetty, camel-jhc > Affects Versions: 1.4.0 > Reporter: William Tam > Priority: Minor > Fix For: 1.5.0 > > Attachments: patch.txt > > > We have explored some ideas of how one may retreive protocol headers from of a Camel message in this thread: http://www.nabble.com/-PROPOSAL--ProtocolMessage-to18078001s22882.html#a18078001. In summary, there were two train of thoughts: 1) set aside a place for "ProtocolHeaders" in Camel message which is strictly for storing what a component recognizes as protocol headers. A component can still select some or all of these protocol headers to be copied to/from the native message header. 2) Using the current headers in Camel message and let people configure what should be copied to/form native message. > I thought about both approaches a bit. I went with the later and created a patch. I guess the problem with the first approach is it introduces one more place to look for headers. We may end up forcing components examine both places for processing information. > In my patch, I create a HeaderFilterStrategy that can control what to copy in/out Camel message headers. A component can be injected with a strategy by Spring or using APIs. I modified the following components to use this strategy: jms, cxf, http, jetty, and jhc. Please review my patch and will update other components based on feedbacks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.