@Dataformat(value="json-jackson") @Metadata(excludeProperties="library,permissions,dropRootNode") public class JacksonDataFormat extends AbstractJacksonDataFormat
| Constructor and Description |
|---|
JacksonDataFormat()
Use the default Jackson
ObjectMapper and Object |
JacksonDataFormat(Class<?> unmarshalType)
Use the default Jackson
ObjectMapper and with a custom unmarshal type |
JacksonDataFormat(Class<?> unmarshalType,
Class<?> jsonView)
Use the default Jackson
ObjectMapper and with a custom unmarshal type and JSON view |
JacksonDataFormat(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<?> unmarshalType)
Use a custom Jackson mapper and and unmarshal type
|
JacksonDataFormat(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<?> unmarshalType,
Class<?> jsonView)
Use a custom Jackson mapper, unmarshal type and JSON view
|
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
createNewObjectMapper() |
String |
getDataFormatName() |
protected String |
getDefaultContentType() |
protected Class<? extends com.fasterxml.jackson.databind.ObjectMapper> |
getObjectMapperClass() |
addModule, disableFeature, disableFeature, disableFeature, doInit, doStart, doStop, enableFeature, enableFeature, enableFeature, getCamelContext, getCollectionType, getCollectionTypeName, getDisableFeatures, getEnableFeatures, getInclude, getJsonView, getJsonViewTypeName, getModuleClassNames, getModuleRefs, getModules, getObjectMapper, getSchemaResolver, getTimezone, getUnmarshalType, getUnmarshalTypeName, isAllowJmsType, isAllowUnmarshallType, isAutoDiscoverObjectMapper, isAutoDiscoverSchemaResolver, isContentTypeHeader, isEnableJacksonTypeConverter, isPrettyPrint, isUseDefaultObjectMapper, isUseList, marshal, setAllowJmsType, setAllowUnmarshallType, setAutoDiscoverObjectMapper, setAutoDiscoverSchemaResolver, setCamelContext, setCollectionType, setCollectionTypeName, setContentTypeHeader, setDisableFeatures, setEnableFeatures, setEnableJacksonTypeConverter, setInclude, setJsonView, setJsonViewTypeName, setModuleClassNames, setModuleRefs, setModules, setObjectMapper, setPrettyPrint, setSchemaResolver, setTimezone, setUnmarshalType, setUnmarshalTypeName, setUseDefaultObjectMapper, setUseList, unmarshal, useList, useMapbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic JacksonDataFormat()
ObjectMapper and Objectpublic JacksonDataFormat(Class<?> unmarshalType)
ObjectMapper and with a custom unmarshal typeunmarshalType - the custom unmarshal typepublic JacksonDataFormat(Class<?> unmarshalType, Class<?> jsonView)
ObjectMapper and with a custom unmarshal type and JSON viewunmarshalType - the custom unmarshal typejsonView - marker class to specify properties to be included during marshalling. See alsopublic JacksonDataFormat(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<?> unmarshalType)
mapper - the custom mapperunmarshalType - the custom unmarshal typepublic JacksonDataFormat(com.fasterxml.jackson.databind.ObjectMapper mapper,
Class<?> unmarshalType,
Class<?> jsonView)
mapper - the custom mapperunmarshalType - the custom unmarshal typejsonView - marker class to specify properties to be included during marshalling. See alsopublic String getDataFormatName()
getDataFormatName in interface org.apache.camel.spi.DataFormatNamegetDataFormatName in class AbstractJacksonDataFormatprotected com.fasterxml.jackson.databind.ObjectMapper createNewObjectMapper()
createNewObjectMapper in class AbstractJacksonDataFormatprotected Class<? extends com.fasterxml.jackson.databind.ObjectMapper> getObjectMapperClass()
getObjectMapperClass in class AbstractJacksonDataFormatprotected String getDefaultContentType()
getDefaultContentType in class AbstractJacksonDataFormatApache Camel