@Dataformat(value="avro-jackson")
@Metadata(firstVersion="3.10.0",
title="Avro Jackson",
excludeProperties="library,instanceClassName,schema")
public class JacksonAvroDataFormat
extends org.apache.camel.component.jackson.AbstractJacksonDataFormat
| Constructor and Description |
|---|
JacksonAvroDataFormat()
Use the default Jackson
AvroMapper and Object |
JacksonAvroDataFormat(com.fasterxml.jackson.dataformat.avro.AvroMapper mapper,
Class<?> unmarshalType)
Use a custom Jackson
AvroMapper and and unmarshal type |
JacksonAvroDataFormat(com.fasterxml.jackson.dataformat.avro.AvroMapper mapper,
Class<?> unmarshalType,
Class<?> jsonView)
Use a custom Jackson
AvroMapper, unmarshal type and JSON view |
JacksonAvroDataFormat(Class<?> unmarshalType)
Use the default Jackson
AvroMapper and with a custom unmarshal type |
JacksonAvroDataFormat(Class<?> unmarshalType,
Class<?> jsonView)
Use the default Jackson
AvroMapper and with a custom unmarshal type and JSON view |
| Modifier and Type | Method and Description |
|---|---|
protected com.fasterxml.jackson.dataformat.avro.AvroMapper |
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, getNamingStrategy, 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, setNamingStrategy, 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 JacksonAvroDataFormat()
AvroMapper and Objectpublic JacksonAvroDataFormat(Class<?> unmarshalType)
AvroMapper and with a custom unmarshal typeunmarshalType - the custom unmarshal typepublic JacksonAvroDataFormat(Class<?> unmarshalType, Class<?> jsonView)
AvroMapper 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 JacksonAvroDataFormat(com.fasterxml.jackson.dataformat.avro.AvroMapper mapper,
Class<?> unmarshalType)
AvroMapper and and unmarshal typemapper - the custom mapperunmarshalType - the custom unmarshal typepublic JacksonAvroDataFormat(com.fasterxml.jackson.dataformat.avro.AvroMapper mapper,
Class<?> unmarshalType,
Class<?> jsonView)
AvroMapper, unmarshal type and JSON viewmapper - 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 org.apache.camel.component.jackson.AbstractJacksonDataFormatprotected String getDefaultContentType()
getDefaultContentType in class org.apache.camel.component.jackson.AbstractJacksonDataFormatprotected com.fasterxml.jackson.dataformat.avro.AvroMapper createNewObjectMapper()
createNewObjectMapper in class org.apache.camel.component.jackson.AbstractJacksonDataFormatprotected Class<? extends com.fasterxml.jackson.databind.ObjectMapper> getObjectMapperClass()
getObjectMapperClass in class org.apache.camel.component.jackson.AbstractJacksonDataFormatApache Camel