@Metadata(firstVersion="3.0.0",
label="dataformat,transformation,json",
title="CBOR")
public class CBORDataFormat
extends DataFormatDefinition
| Constructor and Description |
|---|
CBORDataFormat() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowJmsType() |
String |
getAllowUnmarshallType() |
Class<?> |
getCollectionType() |
String |
getCollectionTypeName() |
String |
getDisableFeatures() |
String |
getEnableFeatures() |
String |
getObjectMapper() |
String |
getPrettyPrint() |
Class<?> |
getUnmarshalType() |
String |
getUnmarshalTypeName() |
String |
getUseDefaultObjectMapper() |
String |
getUseList() |
void |
setAllowJmsType(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.
|
void |
setAllowUnmarshallType(String allowUnmarshallType)
If enabled then Jackson CBOR is allowed to attempt to use the
CamelCBORUnmarshalType header during the unmarshalling.
|
void |
setCollectionType(Class<?> collectionType) |
void |
setCollectionTypeName(String collectionTypeName)
Refers to a custom collection type to lookup in the registry to use.
|
void |
setDisableFeatures(String disableFeatures)
Set of features to disable on the Jackson
com.fasterxml.jackson.databind.ObjectMapper.
|
void |
setEnableFeatures(String enableFeatures)
Set of features to enable on the Jackson
com.fasterxml.jackson.databind.ObjectMapper.
|
void |
setObjectMapper(String objectMapper)
Lookup and use the existing CBOR ObjectMapper with the given id when
using Jackson.
|
void |
setPrettyPrint(String prettyPrint)
To enable pretty printing output nicely formatted.
|
void |
setUnmarshalType(Class<?> unmarshalType)
Class of the java type to use when unmarshalling
|
void |
setUnmarshalTypeName(String unmarshalTypeName)
Class name of the java type to use when unmarshalling
|
void |
setUseDefaultObjectMapper(String useDefaultObjectMapper)
Whether to lookup and use default Jackson CBOR ObjectMapper from the
registry.
|
void |
setUseList(String useList)
To unmarshal to a List of Map or a List of Pojo.
|
getContentTypeHeader, getDataFormat, getDataFormatName, getShortName, setContentTypeHeader, setDataFormat, setDataFormatNamegetId, setIdpublic CBORDataFormat()
public String getObjectMapper()
public void setObjectMapper(String objectMapper)
public String getUseDefaultObjectMapper()
public void setUseDefaultObjectMapper(String useDefaultObjectMapper)
public String getUnmarshalTypeName()
public void setUnmarshalTypeName(String unmarshalTypeName)
public Class<?> getUnmarshalType()
public String getPrettyPrint()
public void setPrettyPrint(String prettyPrint)
public String getAllowJmsType()
public void setAllowJmsType(String allowJmsType)
public void setUnmarshalType(Class<?> unmarshalType)
public String getCollectionTypeName()
public void setCollectionTypeName(String collectionTypeName)
public Class<?> getCollectionType()
public void setCollectionType(Class<?> collectionType)
public String getUseList()
public void setUseList(String useList)
public String getAllowUnmarshallType()
public void setAllowUnmarshallType(String allowUnmarshallType)
public String getEnableFeatures()
public void setEnableFeatures(String enableFeatures)
public String getDisableFeatures()
public void setDisableFeatures(String disableFeatures)
Apache Camel