|
|
|
@ -3,14 +3,14 @@ |
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring https://camel.apache.org/schema/spring/camel-spring.xsd"> |
|
|
|
<sslContextParameters id="ssl" xmlns="http://camel.apache.org/schema/spring"/> |
|
|
|
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|
|
|
<route id="simple-route"> |
|
|
|
<from id="route-timer" uri="timer://foo?period=30000"/> |
|
|
|
<to id="_to1" uri="netty4-http:https:{{apicast.hostname}}:443/todo/next?ssl=true&sslContextParameters=#ssl&user_key={{apicast.apikey}}"/> |
|
|
|
<log id="route-log" message=">>> ${body}"/> |
|
|
|
<setBody id="_setBody2"> |
|
|
|
<route id="save-next-todo"> |
|
|
|
<from id="route-timer" uri="timer://delay?period=30000"/> |
|
|
|
<to id="get-next-todo" uri="netty4-http:https:{{apicast.hostname}}:443/todo/next?ssl=true&sslContextParameters=#ssl&user_key={{apicast.apikey}}"/> |
|
|
|
<log id="debug-log" message=">>> ${body}"/> |
|
|
|
<setBody id="json-path(.name)"> |
|
|
|
<jsonpath>$.name</jsonpath> |
|
|
|
</setBody> |
|
|
|
<to id="_to2" uri="file:/tmp?fileName=next-todo.txt"/> |
|
|
|
<to id="next-todo-file" uri="file:/tmp?fileName=next-todo.txt"/> |
|
|
|
</route> |
|
|
|
</camelContext> |
|
|
|
</beans> |
|
|
|
|