Este contenido no está disponible en el idioma seleccionado.

Chapter 147. 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>

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

147.2. Spring Boot Auto-Configuration

The component supports 5 options, which are listed below.

NameDescriptionDefaultType

camel.dataformat.hessian.allowed-unmarshall-objects

Define the allowed objects to be unmarshalled

 

String

camel.dataformat.hessian.content-type-header

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.

false

Boolean

camel.dataformat.hessian.denied-unmarshall-objects

Define the denied objects to be unmarshalled

 

String

camel.dataformat.hessian.enabled

Enable hessian dataformat

true

Boolean

camel.dataformat.hessian.whitelist-enabled

Define if Whitelist feature is enabled or not

true

Boolean

ND

147.3. Using the Hessian data format in Java DSL

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

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

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

© 2024 Red Hat, Inc.