此内容没有您所选择的语言版本。
Chapter 134. Hessian DataFormat (deprecated)
Available as of Camel version 2.17
Hessian is Data Format for marshalling and unmarshalling messages using Caucho’s Hessian format.
If you want to use Hessian Data Format from Maven, add the following dependency to your pom.xml
:
134.1. Options 复制链接链接已复制到粘贴板!
The Hessian dataformat supports 4 options which are listed below.
Name | Default | Java Type | Description |
---|---|---|---|
whitelistEnabled |
|
| Define if Whitelist feature is enabled or not |
allowedUnmarshallObjects |
| Define the allowed objects to be unmarshalled | |
deniedUnmarshallObjects |
| Define the denied objects to be unmarshalled | |
contentTypeHeader |
|
| Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML, or application/json for data formats marshalling to JSon etc. |
134.2. Using the Hessian data format in Java DSL 复制链接链接已复制到粘贴板!
from("direct:in") .marshal().hessian();
from("direct:in")
.marshal().hessian();