Name
Policy — Defines a policy the route will use
Usage
The policy pattern allows you to specify a policy, such as a security policy, to which all nodes that follow it must adhere. The policy is configured as a Spring bean.
The policy pattern can appear anywhere in the body of a route.
Properties
Table 6.2 describes the properties you can specify using the properties editor.
Table 6.2. Policy Properties
Name | Description |
---|---|
Ref | Specifies a reference to the Spring bean configuring the policy to be enforced. |
Inherit Error Handler | Specifies if the node should use the error handler configured for the route. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |