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.此内容没有您所选择的语言版本。
37.7. TypeConverter for SAXSource
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 type converter mechanism is extensible and it so happens that the provider demonstration requires a custom type converter that can convert
String
objects to SAXSource
objects.
String to SAXSource type converter 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
String
to SAXSource
type converter is implemented in the AdditionalConverters
class, as follows:
Reference 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
For full details of the type converter mechanism in Apache Camel, see Section 40.3, “Built-In Type Converters” and Chapter 42, Type Converters.