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

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.

主站蜘蛛池模板: 雷山县| 涪陵区| 滦南县| 通化县| 桂阳县| 崇仁县| 兴隆县| 左权县| 襄垣县| 鸡东县| 富阳市| 福建省| 崇信县| 隆尧县| 恩平市| 阳西县| 恩平市| 广平县| 郑州市| 甘谷县| 罗源县| 汉沽区| 满洲里市| 游戏| 体育| 镇巴县| 旌德县| 常德市| 邢台市| 潞西市| 临桂县| 正宁县| 密云县| 延津县| 蓬安县| 通山县| 若尔盖县| 大方县| 余干县| 苍山县| 义马市|