Class SetPropertyDefinition

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

@Metadata(label="eip,transformation") public class SetPropertyDefinition extends ExpressionNode
Sets a named property on the message exchange
  • Constructor Details

    • SetPropertyDefinition

      public SetPropertyDefinition()
    • SetPropertyDefinition

      public SetPropertyDefinition(String name, ExpressionDefinition expression)
    • SetPropertyDefinition

      public SetPropertyDefinition(String name, org.apache.camel.Expression expression)
    • SetPropertyDefinition

      public SetPropertyDefinition(String name, String value)
  • Method Details

    • toString

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

      public String getShortName()
    • 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 ExpressionNode
    • setExpression

      public void setExpression(ExpressionDefinition expression)
      Expression to return the value of the message exchange property
      Overrides:
      setExpression in class ExpressionNode
    • setName

      public void setName(String name)
      Name of exchange property to set a new value.

      The simple language can be used to define a dynamic evaluated exchange property name to be used. Otherwise a constant name will be used.

    • getName

      public String getName()