Package org.apache.camel.spi
Interface InterceptSendToEndpoint
-
- All Superinterfaces:
AutoCloseable,Endpoint,IsSingleton,Service
public interface InterceptSendToEndpoint extends Endpoint
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessorgetAfter()The processor (optional) for routing after sending to the original endpoint.ProcessorgetBefore()The processor for routing in a detour before sending to the original endpoint.EndpointgetOriginalEndpoint()The original endpoint which was intercepted.booleanisSkip()Whether to skip sending to the original endpoint.voidsetAfter(Processor after)Sets the processor (optional) for routing after sending to the original endpoint.voidsetBefore(Processor before)Sets the processor for routing in a detour before sending to the original endpoint.-
Methods inherited from interface org.apache.camel.Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isSingletonProducer, setCamelContext
-
Methods inherited from interface org.apache.camel.IsSingleton
isSingleton
-
-
-
-
Method Detail
-
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
void setBefore(Processor before)
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
void setAfter(Processor after)
Sets the processor (optional) for routing after sending to the original endpoint.
-
isSkip
boolean isSkip()
Whether to skip sending to the original endpoint.
-
-