Class UnmarshalDefinition

All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, DataFormatDefinitionAware, org.apache.camel.NamedNode, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware

@Metadata(label="dataformat,transformation") public class UnmarshalDefinition extends NoOutputDefinition<UnmarshalDefinition> implements DataFormatDefinitionAware
Converts the message data received from the wire into a format that Apache Camel processors can consume
  • Constructor Details

    • UnmarshalDefinition

      public UnmarshalDefinition()
    • UnmarshalDefinition

      public UnmarshalDefinition(DataFormatDefinition dataFormatType)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • description

      protected String description()
    • getShortName

      public String getShortName()
      Specified by:
      getShortName in interface org.apache.camel.NamedNode
    • getLabel

      public String getLabel()
      Description copied from class: ProcessorDefinition
      Returns a label to describe this node such as the expression if some kind of expression node
      Specified by:
      getLabel in interface org.apache.camel.NamedNode
      Overrides:
      getLabel in class ProcessorDefinition<UnmarshalDefinition>
    • getDataFormatType

      public DataFormatDefinition getDataFormatType()
      Description copied from interface: DataFormatDefinitionAware
      The data format.
      Specified by:
      getDataFormatType in interface DataFormatDefinitionAware
    • setDataFormatType

      public void setDataFormatType(DataFormatDefinition dataFormatType)
      The data format to be used
      Specified by:
      setDataFormatType in interface DataFormatDefinitionAware
    • getAllowNullBody

      public String getAllowNullBody()
    • setAllowNullBody

      public void setAllowNullBody(String allowNullBody)
      Indicates whether null is allowed as value of a body to unmarshall.
    • allowNullBody

      public UnmarshalDefinition allowNullBody(boolean allowNullBody)
      Indicates whether null is allowed as value of a body to unmarshall.
      Parameters:
      allowNullBody - true if null is allowed as value of a body to unmarshall, false otherwise
      Returns:
      the builder