Chapter 138. 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:

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

138.1. Options

The Hessian dataformat supports 4 options which are listed below.

NameDefaultJava TypeDescription

whitelistEnabled

true

Boolean

Define if Whitelist feature is enabled or not

allowedUnmarshallObjects

 

String

Define the allowed objects to be unmarshalled

deniedUnmarshallObjects

 

String

Define the denied objects to be unmarshalled

contentTypeHeader

false

Boolean

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.

138.2. Using the Hessian data format in Java DSL

    from("direct:in")
        .marshal().hessian();

138.3. Using the Hessian data format in Spring DSL

    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
        <route>
            <from uri="direct:in"/>
            <marshal ref="hessian"/>
        </route>
    </camelContext>
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.