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.The original endpoint which was intercepted.booleanisSkip()Whether to skip sending to the original endpoint.voidSets the processor (optional) for routing after sending to the original endpoint.voidSets the processor for routing in a detour before sending to the original endpoint.Methods inherited from interface org.apache.camel.ComponentAware
getComponent, getComponent, setComponentMethods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContextMethods inherited from interface org.apache.camel.IsSingleton
isSingleton
-
Method Details
-
getOriginalEndpoint
Endpoint getOriginalEndpoint()The original endpoint which was intercepted. -
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.
-