@Metadata(label="configuration") public class InterceptSendToEndpointDefinition extends OutputDefinition<InterceptSendToEndpointDefinition>
outputs
inheritErrorHandler, log
Constructor and Description |
---|
InterceptSendToEndpointDefinition() |
InterceptSendToEndpointDefinition(String uri) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
This method is only for handling some post configuration that is needed since this is an interceptor, and
we have to do a bit of magic logic to fixup to handle predicates with or without proceed/stop set as well.
|
InterceptSendToEndpointDefinition |
afterUrl(String url)
After sending to the endpoint then send the message to this url which allows to process its result.
|
String |
getAfterUri() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
List<ProcessorDefinition<?>> |
getOutputs() |
String |
getShortName() |
String |
getSkipSendToOriginalEndpoint() |
String |
getUri() |
boolean |
isAbstract()
Whether this model is abstract or not.
|
boolean |
isTopLevelOnly()
Whether this definition can only be added as top-level directly on the route itself (such as
onException,onCompletion,intercept, etc.)
If trying to add a top-level only definition to a nested output would fail in the
ProcessorDefinition.addOutput(ProcessorDefinition) method. |
void |
setAfterUri(String afterProcessor)
After sending to the endpoint then send the message to this uri which allows to process its result.
|
void |
setOutputs(List<ProcessorDefinition<?>> outputs) |
void |
setSkipSendToOriginalEndpoint(String skipSendToOriginalEndpoint)
If set to true then the message is not sent to the original endpoint.
|
void |
setUri(String uri)
Intercept sending to the uri or uri pattern.
|
InterceptSendToEndpointDefinition |
skipSendToOriginalEndpoint()
Skip sending the
Exchange to the original intended endpoint |
String |
toString() |
InterceptSendToEndpointDefinition |
when(org.apache.camel.Predicate predicate)
Applies this interceptor only if the given predicate is true
|
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isInheritErrorHandler, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, sort, sort, sort, split, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public InterceptSendToEndpointDefinition()
public InterceptSendToEndpointDefinition(String uri)
public List<ProcessorDefinition<?>> getOutputs()
getOutputs
in class OutputDefinition<InterceptSendToEndpointDefinition>
public void setOutputs(List<ProcessorDefinition<?>> outputs)
setOutputs
in class OutputDefinition<InterceptSendToEndpointDefinition>
public String toString()
toString
in class OutputDefinition<InterceptSendToEndpointDefinition>
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
getShortName
in class OutputDefinition<InterceptSendToEndpointDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ProcessorDefinition<InterceptSendToEndpointDefinition>
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<InterceptSendToEndpointDefinition>
public boolean isTopLevelOnly()
ProcessorDefinition
ProcessorDefinition.addOutput(ProcessorDefinition)
method.isTopLevelOnly
in class ProcessorDefinition<InterceptSendToEndpointDefinition>
public InterceptSendToEndpointDefinition when(@AsPredicate org.apache.camel.Predicate predicate)
predicate
- the predicatepublic InterceptSendToEndpointDefinition skipSendToOriginalEndpoint()
Exchange
to the original intended endpointpublic InterceptSendToEndpointDefinition afterUrl(String url)
public void afterPropertiesSet()
public String getSkipSendToOriginalEndpoint()
public void setSkipSendToOriginalEndpoint(String skipSendToOriginalEndpoint)
public String getUri()
public void setUri(String uri)
public String getAfterUri()
public void setAfterUri(String afterProcessor)
Apache Camel