CBOR

Unmarshal a CBOR payload to POJO and back

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-cbor-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 11 options, which are listed below.

Name Description Default Type

camel.dataformat.cbor.allow-jms-type

Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.

false

Boolean

camel.dataformat.cbor.allow-unmarshall-type

If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.

false

Boolean

camel.dataformat.cbor.collection-type

Refers to a custom collection type to lookup in the registry to use.

String

camel.dataformat.cbor.disable-features

Set of features to disable on the Jackson ObjectMapper. Multiple features can be separated by comma.

String

camel.dataformat.cbor.enable-features

Set of features to enable on the Jackson ObjectMapper. Multiple features can be separated by comma.

String

camel.dataformat.cbor.enabled

Whether to enable auto configuration of the cbor data format. This is enabled by default.

Boolean

camel.dataformat.cbor.object-mapper

Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson.

String

camel.dataformat.cbor.pretty-print

To enable pretty printing output nicely formatted. Is by default false.

false

Boolean

camel.dataformat.cbor.unmarshal-type

Class name of the java type to use when unmarshalling.

String

camel.dataformat.cbor.use-default-object-mapper

Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.

true

Boolean

camel.dataformat.cbor.use-list

To unmarshal to a List of Map or a List of Pojo.

false

Boolean