This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new b23858465a64 CAMEL-27381: camel-cxf - the cxf consumer does not return
the common HTTP request headers as response headers (#30589)
b23858465a64 is described below
commit b23858465a646de32d2f2fc3434b22cd27875ca2
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Nov 22 14:09:46 2026 +0100
CAMEL-27381: camel-cxf - the cxf consumer does not return the common HTTP
request headers as response headers (#30589)
The cxf consumer returns the headers of the reply message as HTTP response
headers. The headers of the request stay on the message unless the route
removes them, so Host, User-Agent, Authorization, Cookie and the other
request headers were sent back with the response.
DefaultCxfBinding now leaves out the common HTTP request headers (the same
list as camel-platform-http, compared without regard to case) when it builds
the response, in populateCxfResponseFromExchange and in
populateCxfHeaderFromCamelExchangeBeforeCheckError (the fault path). The
headers of the Camel message are not changed, and the producer path is not
changed, so the cxf producer still sends these headers to the service. A
custom binding can override isHttpRequestHeader to return such a header.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../apache/camel/catalog/docs/cxf-component.adoc | 61 ++++++
.../src/main/docs/cxf-component.adoc | 61 ++++++
.../component/cxf/jaxws/DefaultCxfBinding.java | 81 +++++++-
.../cxf/jaxws/CxfConsumerRequestHeadersTest.java | 204 +++++++++++++++++++++
.../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 13 ++
5 files changed, 418 insertions(+), 2 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cxf-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cxf-component.adoc
index 5ae5e472a57f..19220de80b96 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cxf-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/cxf-component.adoc
@@ -359,6 +359,67 @@ The same configuration in Spring XML:
</cxf:cxfEndpoint>
----
+=== HTTP headers of the reply
+
+The `cxf` consumer returns the headers of the reply message as HTTP response
headers, except the ones the
+`headerFilterStrategy` filters, such as the `Camel*` headers. The headers of
the request stay on the message unless
+the route removes them, so the consumer also leaves out the common HTTP
request headers, such as `Authorization`,
+`Cookie`, `Host`, `User-Agent` and the `Accept` and `If-*` headers (the same
list as `platform-http`), compared
+without regard to case.
+
+The other headers are returned, both the ones the route set for the reply and
the other headers of the request, such
+as a custom `X-` header, as well as the headers that a producer in the route
received, for example from a backend
+service. A route that should not return them removes them before the reply,
for example with `removeHeaders`:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("cxf:bean:serviceEndpoint")
+ .to("cxf:bean:backendEndpoint")
+ .removeHeaders("X-*")
+ .setHeader("X-Reply", constant("done"));
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+ <from uri="cxf:bean:serviceEndpoint"/>
+ <to uri="cxf:bean:backendEndpoint"/>
+ <removeHeaders pattern="X-*"/>
+ <setHeader name="X-Reply">
+ <constant>done</constant>
+ </setHeader>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+ from:
+ uri: cxf:bean:serviceEndpoint
+ steps:
+ - to:
+ uri: cxf:bean:backendEndpoint
+ - removeHeaders:
+ pattern: "X-*"
+ - setHeader:
+ name: X-Reply
+ constant:
+ expression: done
+----
+====
+
+To return one of the common request headers anyway, set it under another name,
or set the `cxfBinding` option to a
+subclass of `DefaultCxfBinding` that overrides `isHttpRequestHeader`. The
`cxf` producer sends the headers of the
+message to the service, the common request headers such as `Authorization`
included.
+
=== Description of CxfHeaderFilterStrategy options
There are _in-band_ and _out-of-band_ on-the-wire headers from the
diff --git
a/components/camel-cxf/camel-cxf-soap/src/main/docs/cxf-component.adoc
b/components/camel-cxf/camel-cxf-soap/src/main/docs/cxf-component.adoc
index 5ae5e472a57f..19220de80b96 100644
--- a/components/camel-cxf/camel-cxf-soap/src/main/docs/cxf-component.adoc
+++ b/components/camel-cxf/camel-cxf-soap/src/main/docs/cxf-component.adoc
@@ -359,6 +359,67 @@ The same configuration in Spring XML:
</cxf:cxfEndpoint>
----
+=== HTTP headers of the reply
+
+The `cxf` consumer returns the headers of the reply message as HTTP response
headers, except the ones the
+`headerFilterStrategy` filters, such as the `Camel*` headers. The headers of
the request stay on the message unless
+the route removes them, so the consumer also leaves out the common HTTP
request headers, such as `Authorization`,
+`Cookie`, `Host`, `User-Agent` and the `Accept` and `If-*` headers (the same
list as `platform-http`), compared
+without regard to case.
+
+The other headers are returned, both the ones the route set for the reply and
the other headers of the request, such
+as a custom `X-` header, as well as the headers that a producer in the route
received, for example from a backend
+service. A route that should not return them removes them before the reply,
for example with `removeHeaders`:
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("cxf:bean:serviceEndpoint")
+ .to("cxf:bean:backendEndpoint")
+ .removeHeaders("X-*")
+ .setHeader("X-Reply", constant("done"));
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+ <from uri="cxf:bean:serviceEndpoint"/>
+ <to uri="cxf:bean:backendEndpoint"/>
+ <removeHeaders pattern="X-*"/>
+ <setHeader name="X-Reply">
+ <constant>done</constant>
+ </setHeader>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+ from:
+ uri: cxf:bean:serviceEndpoint
+ steps:
+ - to:
+ uri: cxf:bean:backendEndpoint
+ - removeHeaders:
+ pattern: "X-*"
+ - setHeader:
+ name: X-Reply
+ constant:
+ expression: done
+----
+====
+
+To return one of the common request headers anyway, set it under another name,
or set the `cxfBinding` option to a
+subclass of `DefaultCxfBinding` that overrides `isHttpRequestHeader`. The
`cxf` producer sends the headers of the
+message to the service, the common request headers such as `Authorization`
included.
+
=== Description of CxfHeaderFilterStrategy options
There are _in-band_ and _out-of-band_ on-the-wire headers from the
diff --git
a/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
b/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
index b125512857a7..c7527f4936ad 100644
---
a/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
+++
b/components/camel-cxf/camel-cxf-soap/src/main/java/org/apache/camel/component/cxf/jaxws/DefaultCxfBinding.java
@@ -25,6 +25,7 @@ import java.nio.charset.StandardCharsets;
import java.security.Principal;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
@@ -35,6 +36,7 @@ import java.util.Map;
import java.util.Set;
import java.util.StringJoiner;
import java.util.TreeMap;
+import java.util.TreeSet;
import jakarta.activation.DataHandler;
import jakarta.xml.soap.SOAPMessage;
@@ -67,6 +69,7 @@ import org.apache.camel.spi.HeaderFilterStrategy;
import org.apache.camel.spi.HeaderFilterStrategyAware;
import org.apache.camel.support.ExchangeHelper;
import org.apache.camel.support.SynchronizationAdapter;
+import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.util.IOHelper;
import org.apache.camel.util.ObjectHelper;
import org.apache.camel.util.StringHelper;
@@ -105,8 +108,51 @@ import org.slf4j.LoggerFactory;
*/
public class DefaultCxfBinding implements CxfBinding,
HeaderFilterStrategyAware {
private static final Logger LOG =
LoggerFactory.getLogger(DefaultCxfBinding.class);
+
+ /**
+ * The common HTTP request headers, which the consumer does not return as
HTTP response headers (the same list as
+ * camel-platform-http). The headers of the request are still on the Camel
message when the route does not replace
+ * them, and these should not be returned in the reply. Compared without
regard to case, as the Camel headers keep
+ * the casing of the request and HTTP/2 requires field names in lower case.
+ */
+ private static final Set<String> COMMON_HTTP_REQUEST_HEADERS =
caseInsensitiveSet(
+ "A-IM",
+ "Accept",
+ "Accept-Charset",
+ "Accept-Encoding",
+ "Accept-Language",
+ "Accept-Datetime",
+ "Access-Control-Request-Method",
+ "Access-Control-Request-Headers",
+ "Authorization",
+ "Cookie",
+ "Expect",
+ "Forwarded",
+ "From",
+ "Host",
+ "HTTP2-Settings",
+ "If-Match",
+ "If-Modified-Since",
+ "If-None-Match",
+ "If-Range",
+ "If-Unmodified-Since",
+ "Max-Forwards",
+ "Origin",
+ "Prefer",
+ "Proxy-Authorization",
+ "Range",
+ "Referer",
+ "TE",
+ "User-Agent");
+
private HeaderFilterStrategy headerFilterStrategy;
+ private static Set<String> caseInsensitiveSet(String... names) {
+ Set<String> set = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
+ set.addAll(Arrays.asList(names));
+ return Collections.unmodifiableSet(set);
+ }
+
// CxfBinding Methods
//
-------------------------------------------------------------------------
@@ -473,7 +519,8 @@ public class DefaultCxfBinding implements CxfBinding,
HeaderFilterStrategyAware
extractInvocationContextFromCamel(camelExchange, camelHeaders,
responseContext, CxfConstants.RESPONSE_CONTEXT);
- propagateHeadersFromCamelToCxf(camelExchange, camelHeaders,
cxfExchange,
+ // the headers of the request are still on the message, do not return
them as HTTP response headers
+ propagateHeadersFromCamelToCxf(camelExchange,
removeHttpRequestHeaders(camelHeaders), cxfExchange,
responseContext);
Object protocolHeaders =
responseContext.get(CxfConstants.PROTOCOL_HEADERS);
if (protocolHeaders != null) {
@@ -508,7 +555,8 @@ public class DefaultCxfBinding implements CxfBinding,
HeaderFilterStrategyAware
extractInvocationContextFromCamel(camelExchange, camelHeaders,
responseContext, CxfConstants.RESPONSE_CONTEXT);
- propagateHeadersFromCamelToCxf(camelExchange, camelHeaders,
cxfExchange,
+ // the headers of the request are still on the message, do not return
them as HTTP response headers
+ propagateHeadersFromCamelToCxf(camelExchange,
removeHttpRequestHeaders(camelHeaders), cxfExchange,
responseContext);
// create out message
Endpoint ep = cxfExchange.get(Endpoint.class);
@@ -656,6 +704,35 @@ public class DefaultCxfBinding implements CxfBinding,
HeaderFilterStrategyAware
// Non public methods
//
-------------------------------------------------------------------------
+ /**
+ * Whether the header is one of the common HTTP request headers (such as
Authorization, Cookie, Host and
+ * User-Agent), which the consumer does not return as HTTP response
headers. A custom binding can override this
+ * method to return such a header in the reply.
+ *
+ * @param name the name of the header
+ * @return true to keep the header out of the HTTP response
+ */
+ protected boolean isHttpRequestHeader(String name) {
+ return COMMON_HTTP_REQUEST_HEADERS.contains(name);
+ }
+
+ /**
+ * The headers of the response message without the common HTTP request
headers. The headers of the message are not
+ * changed: a copy is returned when there is a header to remove.
+ */
+ private Map<String, Object> removeHttpRequestHeaders(Map<String, Object>
headers) {
+ Map<String, Object> answer = null;
+ for (Map.Entry<String, Object> entry : headers.entrySet()) {
+ if (isHttpRequestHeader(entry.getKey())) {
+ if (answer == null) {
+ answer = new CaseInsensitiveMap(headers);
+ }
+ answer.remove(entry.getKey());
+ }
+ }
+ return answer != null ? answer : headers;
+ }
+
protected MessageContentsList getResponsePayloadList(
org.apache.cxf.message.Exchange exchange,
List<Source> elements) {
diff --git
a/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfConsumerRequestHeadersTest.java
b/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfConsumerRequestHeadersTest.java
new file mode 100644
index 000000000000..e75df09935a7
--- /dev/null
+++
b/components/camel-cxf/camel-cxf-soap/src/test/java/org/apache/camel/component/cxf/jaxws/CxfConsumerRequestHeadersTest.java
@@ -0,0 +1,204 @@
+/*
+ * 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.cxf.jaxws;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.transform.dom.DOMSource;
+
+import org.w3c.dom.Document;
+
+import org.apache.camel.BindToRegistry;
+import org.apache.camel.Exchange;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.cxf.common.CxfPayload;
+import org.apache.camel.component.cxf.common.message.CxfConstants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.converter.jaxp.XmlConverter;
+import org.apache.camel.test.AvailablePortFinder;
+import org.apache.camel.test.junit6.CamelTestSupport;
+import org.apache.cxf.binding.soap.SoapHeader;
+import org.apache.hc.client5.http.classic.methods.HttpPost;
+import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
+import org.apache.hc.client5.http.impl.classic.HttpClientBuilder;
+import org.apache.hc.core5.http.ClassicHttpResponse;
+import org.apache.hc.core5.http.ContentType;
+import org.apache.hc.core5.http.io.entity.EntityUtils;
+import org.apache.hc.core5.http.io.entity.StringEntity;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * The cxf consumer does not return the common HTTP request headers as HTTP
response headers, and the cxf producer still
+ * sends them to the remote service.
+ */
+public class CxfConsumerRequestHeadersTest extends CamelTestSupport {
+
+ private static final String ECHO_REQUEST = "<soap:Envelope
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+ + "<soap:Body><ns1:echo
xmlns:ns1=\"http://jaxws.cxf.component.camel.apache.org/\">"
+ + "<arg0
xmlns=\"http://jaxws.cxf.component.camel.apache.org/\">Hello World!</arg0>"
+ +
"</ns1:echo></soap:Body></soap:Envelope>";
+
+ private static final String ECHO_RESPONSE = "<ns1:echoResponse
xmlns:ns1=\"http://jaxws.cxf.component.camel.apache.org/\">"
+ + "<return
xmlns=\"http://jaxws.cxf.component.camel.apache.org/\">echo Hello
World!</return>"
+ + "</ns1:echoResponse>";
+
+ private static final String ECHO_RESPONSE_ENVELOPE
+ = "<soap:Envelope
xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">"
+ + "<soap:Body>" + ECHO_RESPONSE + "</soap:Body></soap:Envelope>";
+
+ private static AvailablePortFinder.Port port;
+ private static AvailablePortFinder.Port backendPort;
+
+ @BindToRegistry("returnRequestHeadersBinding")
+ private final DefaultCxfBinding returnRequestHeadersBinding = new
DefaultCxfBinding() {
+ @Override
+ protected boolean isHttpRequestHeader(String name) {
+ return false;
+ }
+ };
+
+ @BeforeAll
+ static void allocatePorts() {
+ port = AvailablePortFinder.find();
+ backendPort = AvailablePortFinder.find();
+ }
+
+ @AfterAll
+ static void releasePorts() {
+ if (port != null) {
+ port.release();
+ }
+ if (backendPort != null) {
+ backendPort.release();
+ }
+ }
+
+ private String address(String path) {
+ return "http://localhost:" + port.getPort() + "/" +
getClass().getSimpleName() + "/" + path;
+ }
+
+ @Override
+ protected RouteBuilder createRouteBuilder() {
+ return new RouteBuilder() {
+ public void configure() {
+ from("cxf://" + address("echo")
+ +
"?serviceClass=org.apache.camel.component.cxf.jaxws.HelloService&dataFormat=PAYLOAD")
+ .process(CxfConsumerRequestHeadersTest::reply);
+
+ from("cxf://" + address("custom")
+ +
"?serviceClass=org.apache.camel.component.cxf.jaxws.HelloService&dataFormat=PAYLOAD"
+ + "&cxfBinding=#returnRequestHeadersBinding")
+ .process(CxfConsumerRequestHeadersTest::reply);
+
+ from("undertow:http://localhost:" + backendPort.getPort() + "/"
+ + CxfConsumerRequestHeadersTest.class.getSimpleName() +
"/backend")
+ .to("mock:backend")
+ .setHeader(Exchange.CONTENT_TYPE, constant("text/xml"))
+ .setBody(constant(ECHO_RESPONSE_ENVELOPE));
+ }
+ };
+ }
+
+ private static void reply(Exchange exchange) throws Exception {
+ Document document = new XmlConverter().toDOMDocument(ECHO_RESPONSE,
exchange);
+ CxfPayload<SoapHeader> payload
+ = new CxfPayload<>(null, new ArrayList<>(List.of(new
DOMSource(document.getDocumentElement()))), null);
+ exchange.getMessage().setBody(payload);
+ exchange.getMessage().setHeader("X-Reply", "done");
+ }
+
+ private static HttpPost echoRequest(String uri) {
+ HttpPost post = new HttpPost(uri);
+ post.addHeader("Authorization", "Basic dXNlcjpwYXNz");
+ // lower case, as with HTTP/2
+ post.addHeader("cookie", "session=1234");
+ post.addHeader("User-Agent", "test-client");
+ post.addHeader("Accept", "text/xml");
+ post.addHeader("X-Caller", "caller");
+ post.setEntity(new StringEntity(ECHO_REQUEST,
ContentType.create("text/xml", "UTF-8")));
+ return post;
+ }
+
+ @Test
+ public void testRequestHeadersNotReturned() throws Exception {
+ try (CloseableHttpClient httpclient =
HttpClientBuilder.create().build()) {
+ httpclient.execute(echoRequest(address("echo")), response -> {
+ assertEquals(200, response.getCode());
+ String body = EntityUtils.toString(response.getEntity());
+ assertTrue(body.contains("echo Hello World!"), "Get a wrong
response: " + body);
+
+ assertNull(response.getFirstHeader("Authorization"),
"Authorization should not be returned");
+ assertNull(response.getFirstHeader("Cookie"), "Cookie should
not be returned");
+ assertNull(response.getFirstHeader("User-Agent"), "User-Agent
should not be returned");
+ assertNull(response.getFirstHeader("Accept"), "Accept should
not be returned");
+ assertNull(response.getFirstHeader("Host"), "Host should not
be returned");
+ assertHeader(response, "X-Reply", "done");
+ return null;
+ });
+ }
+ }
+
+ @Test
+ public void testRequestHeadersReturnedWithCustomBinding() throws Exception
{
+ try (CloseableHttpClient httpclient =
HttpClientBuilder.create().build()) {
+ httpclient.execute(echoRequest(address("custom")), response -> {
+ assertEquals(200, response.getCode());
+ assertHeader(response, "Authorization", "Basic dXNlcjpwYXNz");
+ assertHeader(response, "User-Agent", "test-client");
+ assertHeader(response, "X-Reply", "done");
+ return null;
+ });
+ }
+ }
+
+ @Test
+ public void testProducerSendsRequestHeaders() throws Exception {
+ MockEndpoint backend = getMockEndpoint("mock:backend");
+ backend.expectedMessageCount(1);
+ backend.expectedHeaderReceived("Authorization", "Basic dXNlcjpwYXNz");
+ backend.expectedHeaderReceived("User-Agent", "test-client");
+ backend.expectedHeaderReceived("X-Caller", "caller");
+
+ Exchange exchange = template.send("cxf://http://localhost:" +
backendPort.getPort() + "/"
+ + getClass().getSimpleName() +
"/backend"
+ +
"?serviceClass=org.apache.camel.component.cxf.jaxws.HelloService",
+ e -> {
+ e.getIn().setBody(new ArrayList<>(List.of("Hello
World!")));
+ e.getIn().setHeader(CxfConstants.OPERATION_NAME, "echo");
+ e.getIn().setHeader("Authorization", "Basic dXNlcjpwYXNz");
+ e.getIn().setHeader("User-Agent", "test-client");
+ e.getIn().setHeader("X-Caller", "caller");
+ });
+
+ MockEndpoint.assertIsSatisfied(context);
+ assertNull(exchange.getException());
+ assertEquals("echo Hello World!",
exchange.getMessage().getBody(String.class));
+ }
+
+ private static void assertHeader(ClassicHttpResponse response, String
name, String expected) {
+ assertNotNull(response.getFirstHeader(name), name + " should be
returned");
+ assertEquals(expected, response.getFirstHeader(name).getValue());
+ }
+}
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index 299a87218c03..9cb87b0374fd 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -1273,6 +1273,19 @@ that header, and says when `operationName` is set, in
place of `Cannot find meth
no longer sends it as an HTTP header, with either client API. The
`SimpleConsumer` binding no longer returns it as a
response header.
+=== camel-cxf - the consumer does not return the common HTTP request headers
as response headers
+
+The `cxf` consumer returns the headers of the reply message as HTTP response
headers. As the headers of the request
+stay on the message unless the route removes them, the request headers were
sent back with the response. The consumer
+now leaves out the common HTTP request headers, such as `Authorization`,
`Cookie`, `Host`, `User-Agent` and the
+`Accept` and `If-*` headers, compared without regard to case. This is the same
list as `platform-http`, which keeps
+these headers off its responses too. Other headers of the request, such as
custom `X-` headers, are still returned
+unless the route removes them. The `cxf` producer is not changed, and still
sends these headers to the service.
+
+A route that relied on one of these headers being returned can return it under
another name, or set the
+`cxfBinding` option to a subclass of `DefaultCxfBinding` that overrides
`isHttpRequestHeader` and returns `false` for
+the header.
+
=== camel-snmp - the trap consumer receives only the traps of its snmpVersion
The trap consumer (`type=TRAP`) now receives only the traps of the
`snmpVersion` of its endpoint. With `snmpVersion=0`