diff options
Diffstat (limited to 'config/dynamic/routes')
-rw-r--r-- | config/dynamic/routes/sdnc-api.route | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/dynamic/routes/sdnc-api.route b/config/dynamic/routes/sdnc-api.route new file mode 100644 index 0000000..19bc5ec --- /dev/null +++ b/config/dynamic/routes/sdnc-api.route @@ -0,0 +1,17 @@ +<route xmlns="http://camel.apache.org/schema/spring" trace="true" id="apiMapperRoute"> + <from uri="direct:startRoutingProcess" /> + <choice> + <when> + <simple>${in.body.apiName} == 'VNF-API'</simple> + <log message="Processing ${in.body.apiName} by Camel Routing Context"/> + <to uri="bean:vnfApiHandler?method=process"/> + </when> + <when> + <simple>${in.body.apiName} == 'GENERIC-RESOURCE-API'</simple> + <log message="Processing ${in.body.apiName} by Camel Routing Context"/> + <to uri="bean:genericResourceApiHandler?method=process"/> + </when> + </choice> +</route> + + |