Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0B6696C7 for ; Fri, 7 Sep 2012 02:19:08 +0000 (UTC) Received: (qmail 29877 invoked by uid 500); 7 Sep 2012 02:19:08 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 29813 invoked by uid 500); 7 Sep 2012 02:19:07 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 29803 invoked by uid 99); 7 Sep 2012 02:19:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 02:19:07 +0000 Date: Fri, 7 Sep 2012 13:19:07 +1100 (NCT) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: <351897494.48113.1346984347769.JavaMail.jiratomcat@arcas> In-Reply-To: <1203958721.47033.1346970487541.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CAMEL-5575) Add new HttpEndpoint Option "httpHeaderFilterStrategy" on Http4 component MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang updated CAMEL-5575: -------------------------------- Priority: Major (was: Critical) > Add new HttpEndpoint Option "httpHeaderFilterStrategy" on Http4 component > ------------------------------------------------------------------------- > > Key: CAMEL-5575 > URL: https://issues.apache.org/jira/browse/CAMEL-5575 > Project: Camel > Issue Type: New Feature > Components: camel-http > Reporter: Amit Patel > Fix For: 2.10.1 > > Attachments: HttpComponent.java > > > Our third-party application accepts Date as Http header, but HttpHeaderFilterStrategy.java filters the date. To support out third-party application I want new feature to add Custom http filter on a Http4 Endpoint. > I made the following changes on HttpComponent createEndpoint method to support custom http filter as opetion qq on Http4 Endpoint. Please find source code in the attached HttpComponent.java file. > > > HttpHeaderFilterStrategy httpHeaderFilterStrategy = resolveAndRemoveReferenceParameter( > parameters, "httpHeaderFilterStrategy", > HttpHeaderFilterStrategy.class); > if (httpHeaderFilterStrategy == null) { > httpHeaderFilterStrategy = resolveAndRemoveReferenceParameter( > parameters, "httpHeaderFilterStrategy", > HttpHeaderFilterStrategy.class); > } > > if (httpHeaderFilterStrategy != null) { > endpoint.setHeaderFilterStrategy(httpHeaderFilterStrategy); > } else { > setEndpointHeaderFilterStrategy(endpoint); > } > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira