官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 邯郸市| 平谷区| 皋兰县| 雷山县| 河津市| 福清市| 昌宁县| 紫云| 云龙县| 广汉市| 凤台县| 抚州市| 文安县| 聂拉木县| 安仁县| 上虞市| 昌都县| 常州市| 陆良县| 宣城市| 兴国县| 阳信县| 晴隆县| 阿荣旗| 崇左市| 云霄县| 安达市| 瑞安市| 南昌县| 茌平县| 郴州市| 西乌珠穆沁旗| 延川县| 依兰县| 鲜城| 城固县| 区。| 泸定县| 九江县| 兰州市| 谢通门县|