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.6. TypeConverter for CXFPayload
Overview 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
String to CXFPayload type converter is implemented in the AdditionalCxfPayloadConverters class, as follows:
Reference 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
For full details of the type converter mechanism in Apache Camel, see Section 43.3, “Built-In Type Converters” and Chapter 45, Type Converters.