Class CBORDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.CBORDataFormat
@Metadata(firstVersion="3.0.0",
label="dataformat,transformation,json",
title="CBOR")
public class CBORDataFormat
extends DataFormatDefinition
Unmarshal a CBOR payload to POJO and back.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Class<?> voidsetAllowJmsType(String allowJmsType) Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.voidsetAllowUnmarshallType(String allowUnmarshallType) If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.voidsetCollectionType(Class<?> collectionType) voidsetCollectionTypeName(String collectionTypeName) Refers to a custom collection type to lookup in the registry to use.voidsetDisableFeatures(String disableFeatures) Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.voidsetEnableFeatures(String enableFeatures) Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.voidsetObjectMapper(String objectMapper) Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson.voidsetPrettyPrint(String prettyPrint) To enable pretty printing output nicely formatted.voidsetUnmarshalType(Class<?> unmarshalType) Class of the java type to use when unmarshallingvoidsetUnmarshalTypeName(String unmarshalTypeName) Class name of the java type to use when unmarshallingvoidsetUseDefaultObjectMapper(String useDefaultObjectMapper) Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.voidsetUseList(String useList) To unmarshal to a List of Map or a List of Pojo.Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatNameMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
CBORDataFormat
public CBORDataFormat()
-
-
Method Details
-
getObjectMapper
-
setObjectMapper
Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson. -
getUseDefaultObjectMapper
-
setUseDefaultObjectMapper
Whether to lookup and use default Jackson CBOR ObjectMapper from the registry. -
getUnmarshalTypeName
-
setUnmarshalTypeName
Class name of the java type to use when unmarshalling -
getUnmarshalType
-
getPrettyPrint
-
setPrettyPrint
To enable pretty printing output nicely formatted. Is by default false. -
getAllowJmsType
-
setAllowJmsType
Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to. -
setUnmarshalType
Class of the java type to use when unmarshalling -
getCollectionTypeName
-
setCollectionTypeName
Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default. -
getCollectionType
-
setCollectionType
-
getUseList
-
setUseList
To unmarshal to a List of Map or a List of Pojo. -
getAllowUnmarshallType
-
setAllowUnmarshallType
If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling. This should only be enabled when desired to be used. -
getEnableFeatures
-
setEnableFeatures
Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma -
getDisableFeatures
-
setDisableFeatures
Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features can be separated by comma
-