public abstract class SendDefinition<Type extends ProcessorDefinition<Type>> extends NoOutputDefinition<Type> implements EndpointRequiredDefinition
| Modifier and Type | Field and Description |
|---|---|
protected Endpoint |
endpoint |
protected String |
ref
Deprecated.
|
protected String |
uri |
inheritErrorHandler, log| Constructor and Description |
|---|
SendDefinition() |
SendDefinition(String uri) |
| Modifier and Type | Method and Description |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor
based on the definition model.
|
Endpoint |
getEndpoint()
Gets tne endpoint if an
Endpoint instance was set. |
String |
getEndpointUri()
Gets the uri of the endpoint used by this definition.
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
ExchangePattern |
getPattern() |
String |
getRef() |
String |
getUri() |
String |
getUriOrRef()
Returns the endpoint URI or the name of the reference to it
|
Endpoint |
resolveEndpoint(RouteContext context) |
void |
setEndpoint(Endpoint endpoint) |
void |
setRef(String ref)
Deprecated.
use uri with ref:uri instead
|
void |
setUri(String uri)
Sets the uri of the endpoint to send to.
|
getOutputs, isOutputSupportedaddInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, placeholder, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessordescription, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setId@Deprecated protected String ref
public SendDefinition()
public SendDefinition(String uri)
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinitioncreateProcessor in class ProcessorDefinition<Type extends ProcessorDefinition<Type>>Exceptionpublic Endpoint resolveEndpoint(RouteContext context)
public String getEndpointUri()
EndpointRequiredDefinitiongetEndpointUri in interface EndpointRequiredDefinition@Deprecated public void setRef(String ref)
ref - the reference of the endpointpublic void setUri(String uri)
uri - the uri of the endpointpublic Endpoint getEndpoint()
Endpoint instance was set.
This implementation may return null which means you need to use
getRef() or getUri() to get information about the endpoint.public void setEndpoint(Endpoint endpoint)
public ExchangePattern getPattern()
public String getUriOrRef()
public String getLabel()
ProcessorDefinitiongetLabel in interface NamedNodegetLabel in class ProcessorDefinition<Type extends ProcessorDefinition<Type>>Apache Camel