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 C47C9CA27 for ; Mon, 26 May 2014 03:40:01 +0000 (UTC) Received: (qmail 48268 invoked by uid 500); 26 May 2014 03:40:01 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 48226 invoked by uid 500); 26 May 2014 03:40:01 -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 48219 invoked by uid 99); 26 May 2014 03:40:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 May 2014 03:40:01 +0000 Date: Mon, 26 May 2014 03:40:01 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-7465) DefaultHeaderFIlterStrategy should be case insensitive. 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-7465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008545#comment-14008545 ] Willem Jiang commented on CAMEL-7465: ------------------------------------- Current DefaultHeaderFilterStrategy supports the case insensitive by setting the content-type to lowercase and enable the setting of setLowercase(true) just like this {code} getOutFilter().add("Content-Length".toLowerCase()); setLowerCase(true); {code} It makes sense that we can support the case insensitive , it could save the user some configuration time. > DefaultHeaderFIlterStrategy should be case insensitive. > ------------------------------------------------------- > > Key: CAMEL-7465 > URL: https://issues.apache.org/jira/browse/CAMEL-7465 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Seiji Sogabe > > I created my headerFilterStrategy to filter HTTP header "Content-Type" as follows. > {code} > public class MyCxfRsHeaderFilterStrategy extends DefaultHeaderFilterStrategy { > public CxfRsHeaderFilterStrategy() { > initialize(); > } > protected void initialize() { > : > (snip) > : > getOutFilter().add("Content-Type"); > // filter headers begin with "Camel" or "org.apache.camel" > setOutFilterPattern("(Camel|org\\.apache\\.camel)[\\.|a-z|A-z|0-9]*"); > } > } > {code} > But I can not filter header if header name is "content-type".(all character is lower case). > HTTP header name is case insensitive. so It will be useful if DefaultFilter can filter case insensitive. -- This message was sent by Atlassian JIRA (v6.2#6252)