Class SetPropertyDefinition

  • All Implemented Interfaces:
    Block, HasExpressionType, org.apache.camel.NamedNode, 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 Detail

      • SetPropertyDefinition

        public SetPropertyDefinition()
      • SetPropertyDefinition

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

        public SetPropertyDefinition​(String name,
                                     String value)
    • Method Detail

      • 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
      • 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()