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.Questo contenuto non è disponibile nella lingua selezionata.
38.6. TypeConverter for CXFPayload
Overview Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
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 Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
The
String
to CXFPayload
type converter is implemented in the AdditionalCxfPayloadConverters
class, as follows:
Reference Copia collegamentoCollegamento copiato negli appunti!
Copia collegamentoCollegamento copiato negli appunti!
For full details of the type converter mechanism in Apache Camel, see Section 42.3, “Built-In Type Converters” and Chapter 44, Type Converters.