Class ToDefinition

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

@Metadata(label="eip,routing") public class ToDefinition extends SendDefinition<ToDefinition>
Sends the message to a static endpoint
  • Constructor Details

    • ToDefinition

      public ToDefinition()
    • ToDefinition

      public ToDefinition(String uri)
    • ToDefinition

      public ToDefinition(org.apache.camel.Endpoint endpoint)
    • ToDefinition

      public ToDefinition(EndpointProducerBuilder endpointDefinition)
    • ToDefinition

      public ToDefinition(String uri, org.apache.camel.ExchangePattern pattern)
    • ToDefinition

      public ToDefinition(org.apache.camel.Endpoint endpoint, org.apache.camel.ExchangePattern pattern)
    • ToDefinition

      public ToDefinition(EndpointProducerBuilder endpoint, org.apache.camel.ExchangePattern pattern)
  • Method Details

    • getShortName

      public String getShortName()
    • toString

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

      public String getPattern()
      Overrides:
      getPattern in class SendDefinition<ToDefinition>
    • setPattern

      public void setPattern(String pattern)
      Sets the optional ExchangePattern used to invoke this endpoint
    • getVariableSend

      public String getVariableSend()
    • setVariableSend

      public void setVariableSend(String variableSend)
      To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is taken from this variable instead of the current Message, however the headers from the Message will still be used as well. In other words, the variable is used instead of the message body, but everything else is as usual.
    • getVariableReceive

      public String getVariableReceive()
    • setVariableReceive

      public void setVariableReceive(String variableReceive)
      To use a variable to store the received message body (only body, not headers). This is handy for easy access to the received message body via variables. Important: When using receive variable then the received body is stored only in this variable and not on the current Message.