第 146 章 Hessian DataFormat (已弃用)

作为 Camel 2.17 版提供

Hessian 是使用 Caucho's Hessian 格式进行 marshalling 和 unmarshalling 消息的数据格式。

如果要使用 Maven 中的 Hessian 数据格式,请在 pom.xml 中添加以下依赖项:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-hessian</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

146.1. 选项

Hessian dataformat 支持 4 个选项,它们如下。

名称默认Java 类型描述

whitelistEnabled

true

布尔值

定义是否启用 Whitelist 功能

allowedUnmarshallObjects

 

字符串

定义允许对象被取消marshalled

deniedUnmarshallObjects

 

字符串

定义要取消编出的拒绝对象

contentTypeHeader

false

布尔值

如果数据格式能够这样做,则数据格式是否应该以 data 格式设置 Content-Type 标头。例如,用于数据格式的 application/xml (数据格式)或 application/json 用于数据格式 marshalling to JSon etc。