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 11:39:05 UTC

(camel) branch main updated (cecf1a5990b -> 691f1a8d0c7)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from cecf1a5990b chore(deps): Bump spring-security-version from 6.4.3 to 6.4.4 (#17486)
     new 3dbd3a1c0af CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP
     new 86d4654dd73 CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP
     new 6a43571d5fa CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Netty HTTP
     new 867392034ab CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow
     new 86b67a4bcce CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow
     new 691f1a8d0c7 CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../netty/http/NettyHttpHeaderFilterStrategy.java  |  2 +
 .../http/PlatformHttpHeaderFilterStrategy.java     | 45 ----------------------
 .../camel/component/undertow/UndertowEndpoint.java |  3 +-
 .../undertow/UndertowHeaderFilterStrategy.java     |  4 ++
 .../ROOT/pages/camel-4x-upgrade-guide-4_11.adoc    | 10 ++++-
 5 files changed, 17 insertions(+), 47 deletions(-)
 delete mode 100644 components/camel-platform-http/src/main/java/org/apache/camel/component/platform/http/PlatformHttpHeaderFilterStrategy.java


(camel) 05/06: CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 86b67a4bcce95576f3e4b594ac133cfddc57f1b8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 11:48:55 2025 +0100

    CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../java/org/apache/camel/component/undertow/UndertowEndpoint.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java
index 0d321886cf8..a4e1d259359 100644
--- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java
+++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowEndpoint.java
@@ -39,6 +39,7 @@ import org.apache.camel.cloud.ServiceDefinition;
 import org.apache.camel.component.undertow.UndertowConstants.EventType;
 import org.apache.camel.component.undertow.handlers.CamelWebSocketHandler;
 import org.apache.camel.component.undertow.spi.UndertowSecurityProvider;
+import org.apache.camel.http.base.HttpHeaderFilterStrategy;
 import org.apache.camel.http.base.cookie.CookieHandler;
 import org.apache.camel.spi.EndpointServiceLocation;
 import org.apache.camel.spi.HeaderFilterStrategy;
@@ -84,7 +85,7 @@ public class UndertowEndpoint extends DefaultEndpoint
     @UriParam(label = "advanced")
     private AccessLogReceiver accessLogReceiver;
     @UriParam(label = "advanced")
-    private HeaderFilterStrategy headerFilterStrategy = new UndertowHeaderFilterStrategy();
+    private HeaderFilterStrategy headerFilterStrategy = new HttpHeaderFilterStrategy();
     @UriParam(label = "security")
     private SSLContextParameters sslContextParameters;
     @UriParam(label = "consumer")


(camel) 03/06: CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Netty HTTP

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6a43571d5fa6b7aaa7fdbd987ee8a81011e75df3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 10:44:27 2025 +0100

    CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Netty HTTP
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../camel/component/netty/http/NettyHttpHeaderFilterStrategy.java       | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategy.java b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategy.java
index cb9bfb334b0..12b81b0b199 100644
--- a/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategy.java
+++ b/components/camel-netty-http/src/main/java/org/apache/camel/component/netty/http/NettyHttpHeaderFilterStrategy.java
@@ -22,6 +22,8 @@ import org.apache.camel.support.http.HttpUtil;
 
 /**
  * Default Netty {@link HeaderFilterStrategy} used when binding with {@link NettyHttpBinding}.
+ *
+ * @deprecated use {@link org.apache.camel.http.base.HttpHeaderFilterStrategy} instead.
  */
 public class NettyHttpHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
 


(camel) 06/06: CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 691f1a8d0c7bf39b5222cf01f6928e313279bf8a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 11:52:45 2025 +0100

    CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
index 3be8e554243..f546ce5f7b5 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
@@ -112,3 +112,7 @@ This deprecated component was removed in this release.
 === camel-platform-http
 
 The `org.apache.camel.component.platform.http.PlatformHttpHeaderFilterStrategy` class has been removed. Use the `org.apache.camel.http.base.HttpHeaderFilterStrategy`
+
+=== camel-undertow
+
+The `org.apache.camel.component.undertow.UndertowHeaderFilterStrategy` class has been deprecated. The default header filter strategy is now the `org.apache.camel.http.base.HttpHeaderFilterStrategy`


(camel) 04/06: CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 867392034ab95a5409d271592dc26944b2554f98
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 11:20:27 2025 +0100

    CAMEL-21872 - Deprecate *HttpHeaderFilterStrategy - Undertow
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../apache/camel/component/undertow/UndertowHeaderFilterStrategy.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHeaderFilterStrategy.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHeaderFilterStrategy.java
index 95307d45592..75e3de61a37 100644
--- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHeaderFilterStrategy.java
+++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowHeaderFilterStrategy.java
@@ -19,6 +19,10 @@ package org.apache.camel.component.undertow;
 import org.apache.camel.support.DefaultHeaderFilterStrategy;
 import org.apache.camel.support.http.HttpUtil;
 
+/**
+ *
+ * @deprecated use {@link org.apache.camel.http.base.HttpHeaderFilterStrategy} instead.
+ */
 public class UndertowHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
 
     public UndertowHeaderFilterStrategy() {


(camel) 01/06: CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3dbd3a1c0afbce7b7e3dfcd573c233e932a02691
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);
-    }
-}


(camel) 02/06: CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 86d4654dd7366f7dd511867c366a6c99b133b876
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 18 10:15:02 2025 +0100

    CAMEL-21872 - Remove deprecate *HttpHeaderFilterStrategy - Platform HTTP
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
index f3f74e3397d..3be8e554243 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_11.adoc
@@ -107,4 +107,8 @@ on some databases. The old behaviour can be restored by setting the `batchAutoCo
 
 === camel-etcd3
 
-This deprecated component was removed in this release.
\ No newline at end of file
+This deprecated component was removed in this release.
+
+=== camel-platform-http
+
+The `org.apache.camel.component.platform.http.PlatformHttpHeaderFilterStrategy` class has been removed. Use the `org.apache.camel.http.base.HttpHeaderFilterStrategy`