Class CBORDataFormat.Builder

java.lang.Object
org.apache.camel.model.dataformat.CBORDataFormat.Builder
All Implemented Interfaces:
DataFormatBuilder<CBORDataFormat>
Enclosing class:
CBORDataFormat

public static class CBORDataFormat.Builder extends Object implements DataFormatBuilder<CBORDataFormat>
Builder is a specific builder for CBORDataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • objectMapper

      public CBORDataFormat.Builder objectMapper(String objectMapper)
      Lookup and use the existing CBOR ObjectMapper with the given id when using Jackson.
    • useDefaultObjectMapper

      public CBORDataFormat.Builder useDefaultObjectMapper(String useDefaultObjectMapper)
      Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.
    • useDefaultObjectMapper

      public CBORDataFormat.Builder useDefaultObjectMapper(boolean useDefaultObjectMapper)
      Whether to lookup and use default Jackson CBOR ObjectMapper from the registry.
    • unmarshalTypeName

      public CBORDataFormat.Builder unmarshalTypeName(String unmarshalTypeName)
      Class name of the java type to use when unmarshalling
    • prettyPrint

      public CBORDataFormat.Builder prettyPrint(String prettyPrint)
      To enable pretty printing output nicely formatted.

      Is by default false.

    • prettyPrint

      public CBORDataFormat.Builder prettyPrint(boolean prettyPrint)
      To enable pretty printing output nicely formatted.

      Is by default false.

    • allowJmsType

      public CBORDataFormat.Builder allowJmsType(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.
    • allowJmsType

      public CBORDataFormat.Builder allowJmsType(boolean allowJmsType)
      Used for JMS users to allow the JMSType header from the JMS spec to specify a FQN classname to use to unmarshal to.
    • unmarshalType

      public CBORDataFormat.Builder unmarshalType(Class<?> unmarshalType)
      Class of the java type to use when unmarshalling
    • collectionTypeName

      public CBORDataFormat.Builder collectionTypeName(String collectionTypeName)
      Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default.
    • collectionType

      public CBORDataFormat.Builder collectionType(Class<?> collectionType)
    • useList

      public CBORDataFormat.Builder useList(String useList)
      To unmarshal to a List of Map or a List of Pojo.
    • useList

      public CBORDataFormat.Builder useList(boolean useList)
      To unmarshal to a List of Map or a List of Pojo.
    • allowUnmarshallType

      public CBORDataFormat.Builder allowUnmarshallType(String allowUnmarshallType)
      If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.

      This should only be enabled when desired to be used.

    • allowUnmarshallType

      public CBORDataFormat.Builder allowUnmarshallType(boolean allowUnmarshallType)
      If enabled then Jackson CBOR is allowed to attempt to use the CamelCBORUnmarshalType header during the unmarshalling.

      This should only be enabled when desired to be used.

    • enableFeatures

      public CBORDataFormat.Builder enableFeatures(String enableFeatures)
      Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.

      The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature

      Multiple features can be separated by comma

    • disableFeatures

      public CBORDataFormat.Builder disableFeatures(String disableFeatures)
      Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper.

      The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature

      Multiple features can be separated by comma

    • end

      public CBORDataFormat end()
      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Specified by:
      end in interface DataFormatBuilder<CBORDataFormat>
      Returns:
      the data format fully built.