Interface InterceptSendToEndpoint
- All Superinterfaces:
AutoCloseable, ComponentAware, Endpoint, IsSingleton, Service
An
Endpoint wrapper that, when sent to, detours the exchange: before, send to the original endpoint (which
can be skipped), then after (optional).
This is the endpoint created by InterceptEndpointFactory to implement the interceptSendToEndpoint EIP. The
before/after Processors and the optional Predicate guard are configurable, as is whether the original
send is skipped.- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable ProcessorgetAfter()The processor (optional) for routing after sending to the original endpoint.@Nullable ProcessorThe processor for routing in a detour before sending to the original endpoint.@Nullable PredicateOptional predicate that must match to trigger this interceptor.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.voidOptional predicate that must match to trigger this interceptor.Methods inherited from interface ComponentAware
getComponent, getComponent, setComponentMethods inherited from interface Endpoint
configureExchange, configureProperties, createAsyncProducer, createConsumer, createExchange, createExchange, createPollingConsumer, createProducer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isRemote, isSingletonProducer, setCamelContextMethods inherited from interface IsSingleton
isSingleton
-
Method Details
-
getOriginalEndpoint
Endpoint getOriginalEndpoint()The original endpoint which was intercepted. -
getOnWhen
@Nullable Predicate getOnWhen()Optional predicate that must match to trigger this interceptor. -
setOnWhen
Optional predicate that must match to trigger this interceptor. -
getBefore
@Nullable 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
@Nullable 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.
-