Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.39.7. TypeConverter for CXFPayload
Overview Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Apache Camel supports a type converter mechanism, which is used to perform implicit and explicit type conversions of message bodies and message headers. The payload demonstration requires a customer type converter that can convert
String objects to CXFPayload objects. This type converter automatically gets invoked at the end of the Camel route, when the generated response message (which is a String type) gets converted into a CXFPayload object.
String to CXFPayload type converter Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The
String to CXFPayload type converter is implemented in the AdditionalCxfPayloadConverters class, as follows:
Reference Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
For full details of the type converter mechanism in Apache Camel, see Section 43.3, “Built-In Type Converters” and Chapter 45, Type Converters.