You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/03/18 10:53:12 UTC
(camel) 01/06: CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch CAMEL-21872
in repository https://gitbox.apache.org/repos/asf/camel.git
commit ecbdc2f014e081b0810a836486841087e946569a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 10:06:32 2025 +0100
CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../http/PlatformHttpHeaderFilterStrategy.java | 45 ----------------------
1 file changed, 45 deletions(-)
diff --git a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpHeaderFilterStrategy.java b/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpHeaderFilterStrategy.java
deleted file mode 100644
index f291bc3030c..00000000000
--- a/components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpHeaderFilterStrategy.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.platform.http;
-
-import org.apache.camel.support.DefaultHeaderFilterStrategy;
-import org.apache.camel.support.http.HttpUtil;
-
-/**
- * A copy of {@code org.apache.camel.http.common.HttpHeaderFilterStrategy}. Keep in sync or refactor
- * {@code camel-http-common} not to depend on {@code jakarta.servlet-api} and then use the
- * {@code HttpHeaderFilterStrategy} from there.
- *
- * @deprecated use {@link org.apache.camel.http.common.HttpHeaderFilterStrategy} instead.
- */
-@Deprecated
-public class PlatformHttpHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
-
- public PlatformHttpHeaderFilterStrategy() {
- initialize();
- }
-
- protected void initialize() {
- HttpUtil.addCommonFilters(getOutFilter());
-
- setLowerCase(true);
-
- // filter headers begin with "Camel" or "org.apache.camel"
- // must ignore case for Http based transports
- setOutFilterStartsWith(CAMEL_FILTER_STARTS_WITH);
- }
-}