- Mastering Apache Camel
- Jean-Baptiste Onofré
- 185字
- 2021-07-16 13:50:20
Data format and type conversion
Camel is payload-agnostic. This means that it can support any kind of message. Depending on the endpoints, it could be required to convert from one format to another. That's why Camel supports different data formats, in a pluggable way. This means that Camel can marshall or unmarshall a message in a given format. For instance, in addition to the standard JVM serialization, Camel natively supports Avro, JSON, protobuf, JAXB, XmlBeans, XStream, JiBX, SOAP, and so on.
Depending on the endpoints and your need, you can explicitly define the data format during the processing of the message. On the other hand, Camel knows the expected format and type of endpoints. Thanks to this, Camel looks for a type converter, allowing to implicitly transform a message from one format to another.
You can also explicitly define the type converter of your choice at some points during the processing of the message. Camel provides a set of ready-to-use type converters, but, as Camel supports a pluggable model, you can extend it by providing your own type converters. It's a simple POJO to implement.
- Data Visualization with D3 4.x Cookbook(Second Edition)
- 計算機網絡
- C語言程序設計(第2 版)
- 劍指JVM:虛擬機實踐與性能調優
- TestNG Beginner's Guide
- Getting Started with PowerShell
- Gradle for Android
- Unity 2D Game Development Cookbook
- Hadoop 2.X HDFS源碼剖析
- Advanced UFT 12 for Test Engineers Cookbook
- Mastering Elixir
- 遠方:兩位持續創業者的點滴思考
- 劍指大數據:企業級電商數據倉庫項目實戰(精華版)
- Python程序員面試算法寶典
- HTML5+jQuery Mobile移動應用開發