Class SendDefinition<Type extends ProcessorDefinition<Type>>

All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.LineNumberAware, Block, EndpointRequiredDefinition, org.apache.camel.NamedNode, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware
Direct Known Subclasses:
SagaActionUriDefinition, ToDefinition

public abstract class SendDefinition<Type extends ProcessorDefinition<Type>> extends NoOutputDefinition<Type> implements EndpointRequiredDefinition
Sends the message to an endpoint
  • Field Details

    • endpoint

      protected org.apache.camel.Endpoint endpoint
    • endpointProducerBuilder

      protected EndpointProducerBuilder endpointProducerBuilder
    • uri

      @Metadata(required=true) protected String uri
  • Constructor Details

    • SendDefinition

      public SendDefinition()
    • SendDefinition

      public SendDefinition(String uri)
  • Method Details

    • getEndpointUri

      public String getEndpointUri()
      Description copied from interface: EndpointRequiredDefinition
      Gets the uri of the endpoint used by this definition.
      Specified by:
      getEndpointUri in interface EndpointRequiredDefinition
    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
      Sets the uri of the endpoint to send to.
      Parameters:
      uri - the uri of the endpoint
    • getEndpoint

      public org.apache.camel.Endpoint getEndpoint()
      Gets the endpoint if an Endpoint instance was set.

      This implementation may return null which means you need to use getEndpointUri() to get information about the endpoint.

      Returns:
      the endpoint instance, or null
    • setEndpoint

      public void setEndpoint(org.apache.camel.Endpoint endpoint)
    • getEndpointProducerBuilder

      public EndpointProducerBuilder getEndpointProducerBuilder()
    • setEndpointProducerBuilder

      public void setEndpointProducerBuilder(EndpointProducerBuilder endpointProducerBuilder)
    • getPattern

      public String getPattern()
    • 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<Type extends ProcessorDefinition<Type>>
    • clear

      protected void clear()