@Metadata(label="configuration") public class InterceptDefinition extends OutputDefinition<InterceptDefinition>
Modifier and Type | Field and Description |
---|---|
protected List<org.apache.camel.Processor> |
intercepted |
outputs
inheritErrorHandler, log
Constructor and Description |
---|
InterceptDefinition() |
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.
|
List<org.apache.camel.Processor> |
getIntercepted() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind
of expression node
|
String |
getShortName() |
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. |
String |
toString() |
InterceptDefinition |
when(org.apache.camel.Predicate predicate)
Applies this interceptor only if the given predicate is true
|
getOutputs, setOutputs
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, attribute, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isInheritErrorHandler, isWrappingEntireOutput, 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, placeholder, 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, 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, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setParent, setProperty, setProperty, sort, sort, sort, 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, 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, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
protected final List<org.apache.camel.Processor> intercepted
public InterceptDefinition()
public String toString()
toString
in class OutputDefinition<InterceptDefinition>
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
getShortName
in class OutputDefinition<InterceptDefinition>
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ProcessorDefinition<InterceptDefinition>
public boolean isAbstract()
ProcessorDefinition
isAbstract
in class ProcessorDefinition<InterceptDefinition>
public boolean isTopLevelOnly()
ProcessorDefinition
ProcessorDefinition.addOutput(ProcessorDefinition)
method.isTopLevelOnly
in class ProcessorDefinition<InterceptDefinition>
public InterceptDefinition when(@AsPredicate org.apache.camel.Predicate predicate)
predicate
- the predicatepublic void afterPropertiesSet()
public List<org.apache.camel.Processor> getIntercepted()
Apache Camel