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

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

主站蜘蛛池模板: 秦皇岛市| 万宁市| 财经| 临汾市| 咸阳市| 正阳县| 黔东| 高雄市| 沿河| 庆城县| 宁城县| 广德县| 新津县| 英吉沙县| 托克托县| 南川市| 姚安县| 清镇市| 北碚区| 汉中市| 策勒县| 乌兰浩特市| 桃源县| 曲松县| 岳池县| 武汉市| 维西| 临清市| 通辽市| 新兴县| 霍山县| 清远市| 通州区| 罗甸县| 青阳县| 涪陵区| 左贡县| 绥中县| 西乡县| 教育| 砀山县|