public abstract class SendDefinition<Type extends ProcessorDefinition<Type>> extends NoOutputDefinition<Type> implements EndpointRequiredDefinition
ExchangePattern
Modifier and Type | Field and Description |
---|---|
protected Endpoint |
endpoint |
protected String |
ref |
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) |
void |
setUri(String uri) |
getOutputs, isOutputSupported
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aop, attribute, bean, bean, bean, bean, bean, bean, bean, beanRef, beanRef, beanRef, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createChildProcessor, createCompositeProcessor, createOutputsProcessor, createOutputsProcessor, createProcessor, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endParent, endRest, enrich, enrich, enrich, enrichRef, enrichRef, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, 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, 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, pollEnrichRef, pollEnrichRef, preCreateProcessor, process, processRef, recipientList, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeHeaders, removeHeaders, removeProperty, resequence, resequence, rollback, rollback, routeId, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, routingSlip, sample, sample, sample, 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, to, to, to, to, to, to, to, to, to, to, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
description, description, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, idOrCreate, isCustomId, setCustomId, setDescription, setId
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
public 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