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, isOutputSupported
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createOutputsProcessorImpl, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrichRef, enrichRef, enrichRef, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, 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, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sort, split, split, split, startupOrder, stop, threads, threads, threads, threads, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapChannel, wrapInErrorHandler, wrapProcessor
description, 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
ProcessorDefinition
createProcessor
in class ProcessorDefinition<Type extends ProcessorDefinition<Type>>
Exception
public Endpoint resolveEndpoint(RouteContext context)
public String getEndpointUri()
EndpointRequiredDefinition
getEndpointUri
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()
ProcessorDefinition
getLabel
in interface NamedNode
getLabel
in class ProcessorDefinition<Type extends ProcessorDefinition<Type>>
Apache Camel