Class CBORDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.CBORDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<CBORDataFormat>
- Enclosing class:
- CBORDataFormat
public static class CBORDataFormat.Builder
extends Object
implements DataFormatBuilder<CBORDataFormat>
Builder
is a specific builder for CBORDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowJmsType
(boolean allowJmsType) Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.allowJmsType
(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.allowUnmarshallType
(boolean allowUnmarshallType) If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.allowUnmarshallType
(String allowUnmarshallType) If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.collectionType
(Class<?> collectionType) collectionTypeName
(String collectionTypeName) Refers to a custom collection type to lookup in the registry to use.disableFeatures
(String disableFeatures) Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.enableFeatures
(String enableFeatures) Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.end()
Ends the build of the data format.objectMapper
(String objectMapper) Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson.prettyPrint
(boolean prettyPrint) To enable pretty printing output nicely formatted.prettyPrint
(String prettyPrint) To enable pretty printing output nicely formatted.unmarshalType
(Class<?> unmarshalType) Class of the java type to use when unmarshallingunmarshalTypeName
(String unmarshalTypeName) Class name of the java type to use when unmarshallinguseDefaultObjectMapper
(boolean useDefaultObjectMapper) Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.useDefaultObjectMapper
(String useDefaultObjectMapper) Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.useList
(boolean useList) To unmarshal to a List of Map or a List of Pojo.To unmarshal to a List of Map or a List of Pojo.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
objectMapper
Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson. -
useDefaultObjectMapper
Whether to lookup and use default Jackson CBOR ObjectMapper from the registry. -
useDefaultObjectMapper
Whether to lookup and use default Jackson CBOR ObjectMapper from the registry. -
unmarshalTypeName
Class name of the java type to use when unmarshalling -
prettyPrint
To enable pretty printing output nicely formatted. Is by default false. -
prettyPrint
To enable pretty printing output nicely formatted. Is by default false. -
allowJmsType
Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to. -
allowJmsType
Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to. -
unmarshalType
Class of the java type to use when unmarshalling -
collectionTypeName
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. -
collectionType
-
useList
To unmarshal to a List of Map or a List of Pojo. -
useList
To unmarshal to a List of Map or a List of Pojo. -
allowUnmarshallType
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. -
allowUnmarshallType
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. -
enableFeatures
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 -
disableFeatures
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 -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<CBORDataFormat>
- Returns:
- the data format fully built.
-