@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 |
---|---|
Boolean |
getAllowUnmarshallType() |
Class<?> |
getCollectionType() |
String |
getCollectionTypeName() |
String |
getDataFormatName() |
String |
getObjectMapper() |
Class<?> |
getUnmarshalType() |
String |
getUnmarshalTypeName() |
Boolean |
getUseDefaultObjectMapper() |
Boolean |
getUseList() |
void |
setAllowUnmarshallType(Boolean 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 |
setObjectMapper(String objectMapper)
Lookup and use the existing CBOR ObjectMapper with the given id when using
Jackson.
|
void |
setUnmarshalType(Class<?> unmarshalType)
Class of the java type to use when unarmshalling
|
void |
setUnmarshalTypeName(String unmarshalTypeName)
Class name of the java type to use when unarmshalling
|
void |
setUseDefaultObjectMapper(Boolean useDefaultObjectMapper)
Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.
|
void |
setUseList(Boolean useList)
To unarmshal to a List of Map or a List of Pojo.
|
getContentTypeHeader, getDataFormat, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes
getId, setId
public CBORDataFormat()
public String getObjectMapper()
public void setObjectMapper(String objectMapper)
public Boolean getUseDefaultObjectMapper()
public void setUseDefaultObjectMapper(Boolean useDefaultObjectMapper)
public String getUnmarshalTypeName()
public void setUnmarshalTypeName(String unmarshalTypeName)
public Class<?> getUnmarshalType()
public void setUnmarshalType(Class<?> unmarshalType)
public String getCollectionTypeName()
public void setCollectionTypeName(String collectionTypeName)
public Class<?> getCollectionType()
public void setCollectionType(Class<?> collectionType)
public Boolean getUseList()
public void setUseList(Boolean useList)
public Boolean getAllowUnmarshallType()
public void setAllowUnmarshallType(Boolean allowUnmarshallType)
public String getDataFormatName()
getDataFormatName
in class DataFormatDefinition
Apache Camel