You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2023/06/12 21:31:06 UTC
[camel] branch camel-3.20.x updated: Remove a pointless Quarkus Java snippet inside a Spring XML docs section (#10342)
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch camel-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.20.x by this push:
new bc35a32bb05 Remove a pointless Quarkus Java snippet inside a Spring XML docs section (#10342)
bc35a32bb05 is described below
commit bc35a32bb055443f7490b20a22f109abeadc2599
Author: Peter Palaga <pp...@redhat.com>
AuthorDate: Mon Jun 12 21:09:09 2023 +0200
Remove a pointless Quarkus Java snippet inside a Spring XML docs section (#10342)
---
.../src/main/docs/cxf-component.adoc | 36 ++--------------------
1 file changed, 3 insertions(+), 33 deletions(-)
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 e66a066c4e2..dab77bdb7d6 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
@@ -892,10 +892,10 @@ Headers relaying/filtering is bi-directional.
When a route has a CXF endpoint and the developer needs to have
on-the-wire headers, such as SOAP headers, be relayed along the route to
-be consumed say by another JAXWS endpoint, a `CxfHeaderFilterStrategy`
+be consumed say by another JAXWS endpoint, a `CxfHeaderFilterStrategy`
instance should be set on the CXF endpoint, then `relayHeaders` property
-of the `CxfHeaderFilterStrategy` instance should be set to `true`, which
-is the default value. Plus, the `CxfHeaderFilterStrategy` instance also
+of the `CxfHeaderFilterStrategy` instance should be set to `true`, which
+is the default value. Plus, the `CxfHeaderFilterStrategy` instance also
holds a list of `MessageHeaderFilter` interface, which decides if a specific
header will be relayed or not.
@@ -1152,37 +1152,7 @@ Configuration page].
====
You can use cxf:properties to set the camel-cxf endpoint's dataFormat
and setDefaultBus properties from spring configuration file.
-====
-
-[tabs]
-====
-Java (Quarkus)::
-+
-[source,java]
-----
-import org.apache.camel.component.cxf.common.DataFormat;
-import org.apache.camel.component.cxf.jaxws.CxfEndpoint;
-import jakarta.enterprise.context.SessionScoped;
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Named;
-...
-
-@Produces
-@SessionScoped
-@Named
-CxfEndpoint testEndpoint() {
- final CxfEndpoint result = new CxfEndpoint();
- result.setServiceClass(HelloService.class);
- result.setDataFormat(DataFormat.RAW);
- result.setDefaultBus(true);
- result.setAddress("/hello");
- return result;
-}
-----
-
-XML (Spring)::
-+
[source,xml]
----
<cxf:cxfEndpoint id="testEndpoint" address="http://localhost:9000/router"