Package org.apache.camel.spi
Interface InterceptSendToEndpoint
- All Superinterfaces:
AutoCloseable
,ComponentAware
,Endpoint
,IsSingleton
,Service
This is an endpoint when sending to it, is intercepted and is routed in a detour, with the following flow: before,
send to original endpoint (can be skipped), after (optional).
-
Method Summary
Modifier and TypeMethodDescriptiongetAfter()
The processor (optional) for routing after sending to the original endpoint.The processor for routing in a detour before sending to the original endpoint.Optional predicate that must match to trigger this interceptor.The original endpoint which was intercepted.boolean
isSkip()
Whether to skip sending to the original endpoint.void
Sets the processor (optional) for routing after sending to the original endpoint.void
Sets the processor for routing in a detour before sending to the original endpoint.void
Optional predicate that must match to trigger this interceptor.Methods inherited from interface org.apache.camel.ComponentAware
getComponent, getComponent, setComponent
Methods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isRemote, isSingletonProducer, setCamelContext
Methods inherited from interface org.apache.camel.IsSingleton
isSingleton
-
Method Details
-
getOriginalEndpoint
Endpoint getOriginalEndpoint()The original endpoint which was intercepted. -
getOnWhen
Predicate getOnWhen()Optional predicate that must match to trigger this interceptor. -
setOnWhen
Optional predicate that must match to trigger this interceptor. -
getBefore
Processor getBefore()The processor for routing in a detour before sending to the original endpoint. -
setBefore
Sets the processor for routing in a detour before sending to the original endpoint. -
getAfter
Processor getAfter()The processor (optional) for routing after sending to the original endpoint. -
setAfter
Sets the processor (optional) for routing after sending to the original endpoint. -
isSkip
boolean isSkip()Whether to skip sending to the original endpoint.
-