Skip to main content Skip to complementary content

cIntercept

Intercepts each message sub-route and redirects it in another sub-route without modifying the original one. When this detour is complete, message routing to the originally intended target endpoints continues. This can be useful at testing time to simulate error handling.

For more information, see the Apache camel documentation https://camel.apache.org/components/latest/.

cIntercept Standard properties

These properties are used to configure cIntercept running in the Standard Job framework.

The Standard cIntercept component belongs to the Exception Handling family.

Basic settings

Properties Description

Intercept type

Select the intercept type from:
  • Any: Intercepts every processing step as they happen during routing.
  • From: Intercepts only the incoming step.
  • To: Intercepts only when an exchange is about to be sent to the given endpoint.
Component filter This option is available when the From or To intercept type is selected. Enter the component name if you want to only intercept specific components.
The component filter supports endpoint pattern matching by the following rules in the given order:
  1. match by exact URI name
  2. match by wildcard
  3. match by regular expression
Send to original endpoint This option is available when the To intercept type is selected. When enabled, the message will be sent to the original endpoint. If this checkbox is cleared, the message will not be sent to the original intended destination.
Send to additional endpoint This endpoint is available when the To intercept type is selected. If you want to send the message to additional endpoint, select this checkbox and specify the additional endpoint in the After URI field. When this option is enabled, the message will be sent to the original endpoint as well even if the Send to original endpoint option is disabled.

Usage

Usage guidance Description

Usage rule

cIntercept is a start component of a sub-route.

Connections

  • Row / Route: Select the Route link to intercept all the messages of all the sub-routes listened to by the cIntercept.

  • Trigger / When: Select the When link to filter the messages to intercept and click the Component view.

    In the Type list, select the type of language you will use to declare your condition.

    In the Condition field, type in the condition that will be used to filter the messages.

    All the messages that do not match this condition are dropped by default or can be retrieved with the Otherwise link to a different channel.

Limitation

To keep the original sub-routes untouched, cIntercept only be used in a separate sub-route.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!