Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.8.0
-
None
-
Unknown
Description
Most of the route builder configurations allow multiple ToDefinitions, e.g.:
from("direct:start") .process(e -> {}) .to("micrometer:timer:timer-a") .to("direct:to-route-1) .to("micrometer:timer:timer-b") .to("direct:to-route-2)
But the Rest DSL only supports the last defined "to" component, any other "to" components are overwritten silently by Camel.
Is it possible to add a mechanism in the Rest component to let the user know only the last "to" will be in use? Like in the org.apache.camel.model.rest.VerbDefinition#setTo method can an Assert being added to make sure this.to is null before the assignment?