@Metadata(firstVersion="2.16.0", label="dataformat,transformation,xml", title="JacksonXML") public class JacksonXMLDataFormat extends DataFormatDefinition implements ContentTypeHeaderAware
Constructor and Description |
---|
JacksonXMLDataFormat() |
Modifier and Type | Method and Description |
---|---|
String |
getAllowJmsType() |
String |
getAllowUnmarshallType() |
Class<?> |
getCollectionType() |
String |
getCollectionTypeName() |
String |
getContentTypeHeader()
Whether the data format should set the Content-Type header with the type from the data format.
|
String |
getDisableFeatures() |
String |
getEnableFeatures() |
String |
getEnableJaxbAnnotationModule() |
String |
getInclude() |
Class<?> |
getJsonView() |
String |
getJsonViewTypeName() |
String |
getModuleClassNames() |
String |
getModuleRefs() |
String |
getPrettyPrint() |
Class<?> |
getUnmarshalType() |
String |
getUnmarshalTypeName() |
String |
getUseList() |
String |
getXmlMapper() |
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 is allowed to attempt to use the CamelJacksonUnmarshalType 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 |
setContentTypeHeader(String contentTypeHeader)
Whether the data format should set the Content-Type header with the type from the data format.
|
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 |
setEnableJaxbAnnotationModule(String enableJaxbAnnotationModule)
Whether to enable the JAXB annotations module when using jackson.
|
void |
setInclude(String include)
If you want to marshal a pojo to JSON, and the pojo has some fields with null values.
|
void |
setJsonView(Class<?> jsonView)
When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output.
|
void |
setJsonViewTypeName(String jsonViewTypeName)
When marshalling a POJO to JSON you might want to exclude certain fields from the JSON output.
|
void |
setModuleClassNames(String moduleClassNames)
To use custom Jackson modules com.fasterxml.jackson.databind.Module specified as a String with FQN class names.
|
void |
setModuleRefs(String moduleRefs)
To use custom Jackson modules referred from the Camel registry.
|
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 |
setUseList(String useList)
To unmarshal to a List of Map or a List of Pojo.
|
void |
setXmlMapper(String xmlMapper)
Lookup and use the existing XmlMapper with the given id.
|
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
getId, setId
public String getXmlMapper()
public void setXmlMapper(String xmlMapper)
public String getPrettyPrint()
public void setPrettyPrint(String prettyPrint)
public String getUnmarshalTypeName()
public void setUnmarshalTypeName(String unmarshalTypeName)
public Class<?> getUnmarshalType()
public void setUnmarshalType(Class<?> unmarshalType)
public String getJsonViewTypeName()
public void setJsonViewTypeName(String jsonViewTypeName)
public Class<?> getJsonView()
public void setJsonView(Class<?> jsonView)
public String getInclude()
public void setInclude(String include)
public String getAllowJmsType()
public void setAllowJmsType(String allowJmsType)
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 getEnableJaxbAnnotationModule()
public void setEnableJaxbAnnotationModule(String enableJaxbAnnotationModule)
public String getModuleClassNames()
public void setModuleClassNames(String moduleClassNames)
public String getModuleRefs()
public void setModuleRefs(String moduleRefs)
public String getEnableFeatures()
public void setEnableFeatures(String enableFeatures)
public String getDisableFeatures()
public void setDisableFeatures(String disableFeatures)
public String getAllowUnmarshallType()
public void setAllowUnmarshallType(String allowUnmarshallType)
public String getContentTypeHeader()
ContentTypeHeaderAware
getContentTypeHeader
in interface ContentTypeHeaderAware
public void setContentTypeHeader(String contentTypeHeader)
ContentTypeHeaderAware
setContentTypeHeader
in interface ContentTypeHeaderAware
Apache Camel