1 <rests xmlns="http://camel.apache.org/schema/spring">
3 <get uri="/v2/loop/getAllNames" outType="java.lang.String[]"
4 produces="application/json">
6 <removeHeaders pattern="*" />
9 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop')" />
11 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
13 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
15 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
17 <exception>java.lang.Exception</exception>
19 <constant>true</constant>
22 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
23 <log loggingLevel="ERROR"
24 message="GET All Loop names FAILED: ${exception.stacktrace}" />
26 <setHeader headerName="CamelHttpResponseCode">
27 <constant>500</constant>
30 <simple>GET All Loop names FAILED</simple>
36 <get uri="/v2/loop/{loopName}" outType="org.onap.clamp.loop.Loop"
37 produces="application/json">
39 <removeHeaders pattern="*" excludePattern="loopName" />
42 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Loop')" />
44 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
46 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
48 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
50 <exception>java.lang.Exception</exception>
52 <constant>true</constant>
55 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
56 <log loggingLevel="ERROR"
57 message="GET Loop request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
59 <setHeader headerName="CamelHttpResponseCode">
60 <constant>500</constant>
63 <simple>GET Loop FAILED</simple>
69 <get uri="/v2/loop/svgRepresentation/{loopName}"
70 outType="java.lang.String" produces="application/xml">
72 <removeHeaders pattern="*" excludePattern="loopName" />
75 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation')" />
77 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
79 uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" />
81 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
83 <exception>java.lang.Exception</exception>
85 <constant>true</constant>
88 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
89 <log loggingLevel="ERROR"
90 message="GET SVG request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
92 <setHeader headerName="CamelHttpResponseCode">
93 <constant>500</constant>
96 <simple>GET SVG For loop FAILED</simple>
103 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
104 type="com.google.gson.JsonObject" consumes="application/json"
105 outType="org.onap.clamp.loop.Loop" produces="application/json">
107 <removeHeaders pattern="*" excludePattern="loopName" />
110 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update the global properties')" />
112 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
113 <setHeader headerName="GlobalPropertiesJson">
114 <simple>${body}</simple>
116 <to uri="direct:load-loop" />
118 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${header.GlobalPropertiesJson})" />
120 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Global Properties UPDATED','INFO',${exchangeProperty[loopObject]})" />
122 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
124 <exception>java.lang.Exception</exception>
126 <constant>true</constant>
129 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
130 <log loggingLevel="ERROR"
131 message="UPDATE Global properties FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
133 <setHeader headerName="CamelHttpResponseCode">
134 <constant>500</constant>
137 <simple>UPDATE Global properties FAILED </simple>
143 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
144 type="com.google.gson.JsonArray" consumes="application/json"
145 outType="org.onap.clamp.loop.Loop" produces="application/json">
147 <removeHeaders pattern="*" excludePattern="loopName" />
150 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update operational policies')" />
152 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
153 <setHeader headerName="OperationalPoliciesArray">
154 <simple>${body}</simple>
156 <to uri="direct:load-loop" />
158 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${header.OperationalPoliciesArray})" />
160 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
162 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
164 <exception>java.lang.Exception</exception>
166 <constant>true</constant>
169 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
170 <log loggingLevel="ERROR"
171 message="UPDATE Operational policies FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
173 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UPDATE Operational policies request FAILED, Error reported: ${exception.message}','ERROR',${exchangeProperty[loopObject]})" />
175 <setHeader headerName="CamelHttpResponseCode">
176 <constant>500</constant>
179 <simple>UPDATE Operational policies FAILED</simple>
185 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
186 type="org.onap.clamp.policy.microservice.MicroServicePolicy"
187 consumes="application/json"
188 outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
189 produces="application/json">
191 <removeHeaders pattern="*" excludePattern="loopName" />
194 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update Microservice policies')" />
196 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
197 <setProperty propertyName="MicroServicePolicyObject">
198 <simple>${body}</simple>
201 <to uri="direct:load-loop" />
203 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${exchangeProperty[MicroServicePolicyObject]})" />
205 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Micro Service policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
207 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
209 <exception>java.lang.Exception</exception>
211 <constant>true</constant>
214 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
215 <log loggingLevel="ERROR"
216 message="UPDATE MicroService policy FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
218 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UPDATE MicroService policy request FAILED, Error reported: ${exception.message}','ERROR',${exchangeProperty[loopObject]})" />
219 <setHeader headerName="CamelHttpResponseCode">
220 <constant>500</constant>
223 <simple>UPDATE MicroService policy FAILED</simple>
229 <put uri="/v2/loop/deploy/{loopName}"
230 outType="org.onap.clamp.loop.Loop" produces="application/json">
232 <removeHeaders pattern="*" excludePattern="loopName" />
234 <log loggingLevel="INFO"
235 message="DCAE DEPLOY request for loop: ${header.loopName}" />
237 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE DEPLOY request')" />
239 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
240 <to uri="direct:load-loop" />
242 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE DEPLOY request','INFO',${exchangeProperty[loopObject]})" />
244 <to uri="direct:deploy-loop" />
246 <log loggingLevel="INFO"
247 message="DEPLOY request successfully executed for loop: ${header.loopName}" />
249 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
251 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
253 <exception>java.lang.Exception</exception>
255 <constant>true</constant>
258 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
259 <log loggingLevel="ERROR"
260 message="DEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
262 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
263 <setHeader headerName="CamelHttpResponseCode">
264 <constant>500</constant>
267 <simple>DEPLOY request FAILED</simple>
273 <put uri="/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}"
274 outType="org.onap.clamp.loop.Loop" produces="application/json">
276 <removeHeaders pattern="*" excludePattern="loopName|microServicePolicyName" />
278 <log loggingLevel="INFO"
279 message="Refresh Micro Service Policy UI for loop: ${header.loopName} and ${header.microServicePolicyName}" />
281 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Micro Service Policy UI request')" />
283 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
284 <to uri="direct:load-loop" />
286 uri="bean:org.onap.clamp.loop.LoopController?method=refreshMicroServicePolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.microServicePolicyName}})" />
287 <log loggingLevel="INFO"
288 message="REFRESH Micro Service policy request successfully executed for loop: ${header.loopName}" />
290 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Micro Service policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
292 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
294 <exception>java.lang.Exception</exception>
296 <constant>true</constant>
299 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
300 <log loggingLevel="ERROR"
301 message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
303 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
304 <setHeader headerName="CamelHttpResponseCode">
305 <constant>500</constant>
308 <simple>REFRESH json schema request FAILED</simple>
314 <put uri="/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}"
315 outType="org.onap.clamp.loop.Loop" produces="application/json">
317 <removeHeaders pattern="*" excludePattern="loopName|operationalPolicyName" />
319 <log loggingLevel="INFO"
320 message="Refresh Operational Policy UI for loop: ${header.loopName} and ${header.operationalPolicyName}" />
322 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Operational Policy UI request')" />
324 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
325 <to uri="direct:load-loop" />
327 uri="bean:org.onap.clamp.loop.LoopController?method=refreshOperationalPolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.operationalPolicyName}})" />
328 <log loggingLevel="INFO"
329 message="REFRESH operational policy request successfully executed for loop: ${header.loopName}" />
331 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH operational policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
333 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
335 <exception>java.lang.Exception</exception>
337 <constant>true</constant>
340 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
341 <log loggingLevel="ERROR"
342 message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
344 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
345 <setHeader headerName="CamelHttpResponseCode">
346 <constant>500</constant>
349 <simple>REFRESH json schema request FAILED</simple>
355 <put uri="/v2/loop/undeploy/{loopName}"
356 outType="org.onap.clamp.loop.Loop" produces="application/json">
358 <removeHeaders pattern="*" excludePattern="loopName" />
360 <log loggingLevel="INFO"
361 message="DCAE UNDEPLOY request for loop: ${header.loopName}" />
363 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE UNDEPLOY request')" />
365 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
366 <to uri="direct:load-loop" />
368 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE UNDEPLOY request','INFO',${exchangeProperty[loopObject]})" />
369 <to uri="direct:undeploy-loop" />
371 <log loggingLevel="INFO"
372 message="UNDEPLOY request successfully executed for loop: ${header.loopName}" />
374 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
376 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
378 <exception>java.lang.Exception</exception>
380 <constant>true</constant>
383 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
384 <log loggingLevel="ERROR"
385 message="UNDEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
387 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
388 <setHeader headerName="CamelHttpResponseCode">
389 <constant>500</constant>
392 <simple>UNDEPLOY request FAILED</simple>
398 <put uri="/v2/loop/stop/{loopName}"
399 outType="org.onap.clamp.loop.Loop" produces="application/json">
401 <removeHeaders pattern="*" excludePattern="loopName" />
403 <log loggingLevel="INFO"
404 message="STOP request for loop: ${header.loopName}" />
406 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" />
408 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
409 <to uri="direct:load-loop" />
411 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request','INFO',${exchangeProperty[loopObject]})" />
413 <to uri="direct:remove-all-policy-from-active-pdp-group" />
414 <log loggingLevel="INFO"
415 message="STOP request successfully executed for loop: ${header.loopName}" />
417 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request successfully executed','INFO',${exchangeProperty[loopObject]})" />
419 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
421 <exception>java.lang.Exception</exception>
423 <constant>true</constant>
426 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
427 <log loggingLevel="ERROR"
428 message="STOP request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
430 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
431 <setHeader headerName="CamelHttpResponseCode">
432 <constant>500</constant>
435 <simple>STOP request FAILED</simple>
441 <put uri="/v2/loop/restart/{loopName}"
442 outType="org.onap.clamp.loop.Loop" produces="application/json">
444 <removeHeaders pattern="*" excludePattern="loopName" />
446 <log loggingLevel="INFO"
447 message="RESTART request for loop: ${header.loopName}" />
449 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" />
451 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
452 <to uri="direct:load-loop" />
455 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" />
457 <to uri="direct:add-all-to-active-pdp-group" />
458 <log loggingLevel="INFO"
459 message="RESTART request successfully executed for loop: ${header.loopName}" />
461 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" />
463 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
465 <exception>java.lang.Exception</exception>
467 <constant>true</constant>
470 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
471 <log loggingLevel="ERROR"
472 message="RESTART request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
474 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
475 <setHeader headerName="CamelHttpResponseCode">
476 <constant>500</constant>
479 <simple>RESTART request FAILED</simple>
485 <put uri="/v2/loop/submit/{loopName}"
486 outType="org.onap.clamp.loop.Loop" produces="application/json">
488 <removeHeaders pattern="*" excludePattern="loopName" />
490 <log loggingLevel="INFO"
491 message="POLICY SUBMIT request for loop: ${header.loopName}" />
493 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" />
495 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
496 <to uri="direct:load-loop" />
498 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" />
499 <setProperty propertyName="raiseHttpExceptionFlag">
500 <simple resultType="java.lang.Boolean">false</simple>
502 <to uri="direct:remove-all-policy-from-active-pdp-group" />
503 <log loggingLevel="INFO"
504 message="Processing all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
506 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
508 <setProperty propertyName="policy">
509 <simple>${body}</simple>
511 <log loggingLevel="INFO"
512 message="Processing Micro Service Policy: ${exchangeProperty[policy].getName()}" />
513 <setProperty propertyName="raiseHttpExceptionFlag">
514 <simple resultType="java.lang.Boolean">false</simple>
516 <to uri="direct:delete-policy" />
517 <to uri="direct:create-policy" />
519 <log loggingLevel="INFO"
520 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
522 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
524 <setProperty propertyName="policy">
525 <simple>${body}</simple>
527 <log loggingLevel="INFO"
528 message="Processing Operational Policy: ${exchangeProperty[policy].getName()}" />
529 <setProperty propertyName="raiseHttpExceptionFlag">
530 <simple resultType="java.lang.Boolean">false</simple>
533 <to uri="direct:delete-policy" />
534 <to uri="direct:create-policy" />
538 <constant>3000</constant>
541 <to uri="direct:add-all-to-active-pdp-group" />
543 <log loggingLevel="INFO"
544 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
546 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
548 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
550 <exception>java.lang.Exception</exception>
552 <constant>true</constant>
555 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
556 <log loggingLevel="ERROR"
557 message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
559 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
560 <setHeader headerName="CamelHttpResponseCode">
561 <constant>500</constant>
564 <simple>SUBMIT request FAILED</simple>
570 <put uri="/v2/loop/delete/{loopName}">
572 <removeHeaders pattern="*" excludePattern="loopName" />
574 <log loggingLevel="INFO"
575 message="DELETE request for loop: ${header.loopName}" />
577 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
579 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
580 <to uri="direct:load-loop" />
582 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
583 <to uri="direct:undeploy-loop" />
584 <to uri="direct:remove-all-policy-from-active-pdp-group" />
585 <log loggingLevel="INFO"
586 message="Deleting all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
588 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
590 <setProperty propertyName="policy">
591 <simple>${body}</simple>
593 <log loggingLevel="INFO"
594 message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" />
595 <setProperty propertyName="raiseHttpExceptionFlag">
596 <simple resultType="java.lang.Boolean">false</simple>
598 <to uri="direct:delete-policy" />
600 <log loggingLevel="INFO"
601 message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
603 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
605 <setProperty propertyName="policy">
606 <simple>${body}</simple>
608 <log loggingLevel="INFO"
609 message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" />
610 <setProperty propertyName="raiseHttpExceptionFlag">
611 <simple resultType="java.lang.Boolean">false</simple>
613 <to uri="direct:delete-policy" />
616 uri="bean:org.onap.clamp.loop.LoopController?method=deleteLoop(${header.loopName})" />
617 <log loggingLevel="INFO"
618 message="DELETE request successfully executed for loop: ${header.loopName}" />
620 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
622 <exception>java.lang.Exception</exception>
624 <constant>true</constant>
627 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
628 <log loggingLevel="ERROR"
629 message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
631 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
632 <setHeader headerName="CamelHttpResponseCode">
633 <constant>500</constant>
636 <simple>DELETE request FAILED</simple>
642 <get uri="/v2/loop/getstatus/{loopName}"
643 outType="org.onap.clamp.loop.Loop" produces="application/json">
645 <removeHeaders pattern="*" excludePattern="loopName" />
647 <log loggingLevel="INFO"
648 message="GET STATUS request for loop: ${header.loopName}" />
650 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
652 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
653 <to uri="direct:load-loop" />
655 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
656 <to uri="direct:update-policy-status-for-loop" />
657 <to uri="direct:update-dcae-status-for-loop" />
658 <to uri="direct:update-loop-state" />
661 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request successfully executed','INFO',${exchangeProperty[loopObject]})" />
663 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
665 <exception>java.lang.Exception</exception>
667 <constant>true</constant>
670 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
671 <log loggingLevel="ERROR"
672 message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
674 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
678 <simple>${exchangeProperty[loopObject]}</simple>
680 <setHeader headerName="CamelHttpResponseCode">
681 <constant>200</constant>
688 <put uri="/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
690 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
693 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
695 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
696 <to uri="direct:load-loop" />
698 uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
700 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
702 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
704 <exception>java.lang.Exception</exception>
706 <constant>true</constant>
709 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
710 <log loggingLevel="ERROR"
711 message="ADD operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
713 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
714 <setHeader headerName="CamelHttpResponseCode">
715 <constant>500</constant>
718 <simple>ADD Operational policy request FAILED for loop: ${header.loopName}, ${exception.message}"</simple>
725 <put uri="/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}" outType="org.onap.clamp.loop.Loop" produces="application/json">
727 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion|policyName" />
730 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REMOVE operational Policy')" />
732 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
733 <to uri="direct:load-loop" />
734 <setProperty propertyName="policyName">
735 <simple>${header.policyName}</simple>
737 <setProperty propertyName="policy">
738 <simple>${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)}</simple>
740 <setProperty propertyName="raiseHttpExceptionFlag">
741 <simple resultType="java.lang.Boolean">false</simple>
743 <to uri="direct:remove-one-policy-from-active-pdp-group" />
744 <setProperty propertyName="raiseHttpExceptionFlag">
745 <simple resultType="java.lang.Boolean">false</simple>
747 <to uri="direct:delete-policy" />
749 uri="bean:org.onap.clamp.loop.LoopController?method=removeOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
751 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
753 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
755 <exception>java.lang.Exception</exception>
757 <constant>true</constant>
760 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
761 <log loggingLevel="ERROR"
762 message="REMOVE operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
764 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
765 <setHeader headerName="CamelHttpResponseCode">
766 <constant>500</constant>
769 <simple>REMOVE Operational policy request FAILED</simple>
776 uri="/v2/loop/create/{loopName}?templateName={templateName}"
777 outType="org.onap.clamp.loop.Loop" consumes="application/json"
778 produces="application/json">
782 excludePattern="loopName|templateName" />
785 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Create Loop')" />
787 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
789 uri="bean:org.onap.clamp.loop.LoopController?method=createLoop(${header.loopName}, ${header.templateName})" />
791 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
793 <exception>java.lang.Exception</exception>
795 <constant>true</constant>
798 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
799 <log loggingLevel="ERROR"
800 message="CREATE Loop from Template request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
802 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('CREATE Loop from template request failed','ERROR',${exchangeProperty[loopObject]})" />
803 <setHeader headerName="CamelHttpResponseCode">
804 <constant>500</constant>
807 <simple>CREATE Loop from template FAILED</simple>
813 <get uri="/v2/dictionary"
814 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
816 <removeHeaders pattern="*" />
819 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
821 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
823 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
825 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
827 <exception>java.lang.Exception</exception>
829 <constant>true</constant>
832 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
833 <log loggingLevel="ERROR"
834 message="GET Dictionary request failed: ${exception.stacktrace}" />
835 <setHeader headerName="CamelHttpResponseCode">
836 <constant>500</constant>
839 <simple>GET Dictionary FAILED</simple>
846 <get uri="/v2/dictionary/secondary/names"
847 outType="java.lang.String[]" produces="application/json">
849 <removeHeaders pattern="*" />
852 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
854 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
856 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
858 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
860 <exception>java.lang.Exception</exception>
862 <constant>true</constant>
865 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
866 <log loggingLevel="ERROR"
867 message="GET Dictionary request failed: ${exception.stacktrace}" />
868 <setHeader headerName="CamelHttpResponseCode">
869 <constant>500</constant>
872 <simple>GET Dictionary FAILED</simple>
878 <get uri="/v2/dictionary/{dictionaryName}"
879 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
881 <removeHeaders pattern="*"
882 excludePattern="dictionaryName" />
885 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
887 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
889 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
891 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
893 <exception>java.lang.Exception</exception>
895 <constant>true</constant>
898 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
899 <log loggingLevel="ERROR"
900 message="GET Dictionary request failed for: ${header.dictionaryName}, ${exception.stacktrace}" />
901 <setHeader headerName="CamelHttpResponseCode">
902 <constant>500</constant>
905 <simple>GET Dictionary FAILED</simple>
911 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
912 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
913 produces="application/json">
917 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
919 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
920 <setProperty propertyName="DictionaryObject">
921 <simple>${body}</simple>
924 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
926 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
928 <exception>java.lang.Exception</exception>
930 <constant>true</constant>
933 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
934 <log loggingLevel="ERROR"
935 message="PUT Dictionary request failed for: ${exception.stacktrace}" />
936 <setHeader headerName="CamelHttpResponseCode">
937 <constant>500</constant>
940 <simple>PUT Dictionary FAILED</simple>
947 <put uri="/v2/dictionary/{name}"
948 type="org.onap.clamp.tosca.Dictionary"
949 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
950 produces="application/json">
952 <removeHeaders pattern="*" excludePattern="name" />
955 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
957 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
958 <setProperty propertyName="DictionaryObject">
959 <simple>${body}</simple>
962 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
964 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
966 <exception>java.lang.Exception</exception>
968 <constant>true</constant>
971 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
972 <log loggingLevel="ERROR"
973 message="PUT Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
974 <setHeader headerName="CamelHttpResponseCode">
975 <constant>500</constant>
978 <simple>PUT Dictionary FAILED</simple>
985 <delete uri="/v2/dictionary/{name}" produces="application/json">
987 <removeHeaders pattern="*" excludePattern="name" />
990 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
992 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
994 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
996 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
998 <exception>java.lang.Exception</exception>
1000 <constant>true</constant>
1003 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1004 <log loggingLevel="ERROR"
1005 message="DELETE Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
1006 <setHeader headerName="CamelHttpResponseCode">
1007 <constant>500</constant>
1010 <simple>DELETE Dictionary FAILED</simple>
1017 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
1018 produces="application/json">
1020 <removeHeaders pattern="*"
1021 excludePattern="name|shortName" />
1024 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
1026 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1028 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
1030 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1032 <exception>java.lang.Exception</exception>
1034 <constant>true</constant>
1037 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1038 <log loggingLevel="ERROR"
1039 message="DELETE Dictionary element request failed for: ${header.name}, ${exception.stacktrace}" />
1040 <setHeader headerName="CamelHttpResponseCode">
1041 <constant>500</constant>
1044 <simple>DELETE Dictionary element FAILED</simple>
1051 <get uri="/v2/policyToscaModels"
1052 outType="org.onap.clamp.loop.template.PolicyModel"
1053 produces="application/json">
1055 <removeHeaders pattern="*" />
1058 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
1060 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1062 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
1064 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1066 <exception>java.lang.Exception</exception>
1068 <constant>true</constant>
1071 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1072 <log loggingLevel="ERROR"
1073 message="GET Policy Models request failed for: ${exception.stacktrace}" />
1074 <setHeader headerName="CamelHttpResponseCode">
1075 <constant>500</constant>
1078 <simple>GET Policy models FAILED</simple>
1084 <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1085 outType="org.onap.clamp.loop.template.PolicyModel"
1086 produces="application/json">
1088 <removeHeaders pattern="*"
1089 excludePattern="policyModelType|policyModelVersion" />
1092 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
1094 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1096 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
1098 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1100 <exception>java.lang.Exception</exception>
1102 <constant>true</constant>
1105 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1106 <log loggingLevel="ERROR"
1107 message="GET Policy Model request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1108 <setHeader headerName="CamelHttpResponseCode">
1109 <constant>500</constant>
1112 <simple>GET Policy model FAILED</simple>
1118 <get uri="/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}"
1119 outType="java.lang.String" produces="application/json">
1121 <removeHeaders pattern="*"
1122 excludePattern="policyModelType|policyModelVersion" />
1125 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
1127 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1129 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
1131 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1133 <exception>java.lang.Exception</exception>
1135 <constant>true</constant>
1138 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1139 <log loggingLevel="ERROR"
1140 message="GET Policy Model YAML request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1141 <setHeader headerName="CamelHttpResponseCode">
1142 <constant>500</constant>
1145 <simple>GET Policy model YAML FAILED</simple>
1152 <post uri="/v2/policyToscaModels"
1153 type="java.lang.String"
1154 outType="org.onap.clamp.loop.template.PolicyModel"
1155 consumes="plain/text" produces="application/json">
1157 <removeHeaders pattern="*"/>
1160 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1162 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1163 <setProperty propertyName="PolicyModelTosca">
1164 <simple>${body}</simple>
1167 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
1169 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1171 <exception>java.lang.Exception</exception>
1173 <constant>true</constant>
1176 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1177 <log loggingLevel="ERROR"
1178 message="POST Policy Model YAML request failed: ${exception.stacktrace}" />
1179 <setHeader headerName="CamelHttpResponseCode">
1180 <constant>500</constant>
1183 <simple>POST Policy model YAML FAILED</simple>
1189 <put uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1190 type="java.lang.String"
1191 outType="org.onap.clamp.loop.template.PolicyModel"
1192 consumes="plain/text" produces="application/json">
1194 <removeHeaders pattern="*"
1195 excludePattern="policyModelType|policyModelVersion" />
1198 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1200 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1201 <setProperty propertyName="PolicyModelTosca">
1202 <simple>${body}</simple>
1205 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=updatePolicyModelTosca(${header.policyModelType},${policyModelVersion},${exchangeProperty[PolicyModelTosca]})" />
1207 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1209 <exception>java.lang.Exception</exception>
1211 <constant>true</constant>
1214 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1215 <log loggingLevel="ERROR"
1216 message="MODIFY Policy Model YAML request failed: ${exception.stacktrace}" />
1217 <setHeader headerName="CamelHttpResponseCode">
1218 <constant>500</constant>
1221 <simple>MODIFY Policy model YAML FAILED</simple>
1228 <get uri="/v2/templates"
1229 outType="org.onap.clamp.loop.template.LoopTemplate"
1230 produces="application/json">
1232 <removeHeaders pattern="*" />
1235 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
1237 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1239 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
1241 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1243 <exception>java.lang.Exception</exception>
1245 <constant>true</constant>
1248 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1249 <log loggingLevel="ERROR"
1250 message="GET ALL templates request failed: ${exception.stacktrace}" />
1251 <setHeader headerName="CamelHttpResponseCode">
1252 <constant>500</constant>
1255 <simple>GET ALL templates FAILED</simple>
1261 <get uri="/v2/templates/{templateName}"
1262 outType="org.onap.clamp.loop.template.LoopTemplate"
1263 produces="application/json">
1265 <removeHeaders pattern="*"
1266 excludePattern="templateName" />
1269 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
1271 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1273 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
1275 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1277 <exception>java.lang.Exception</exception>
1279 <constant>true</constant>
1282 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1283 <log loggingLevel="ERROR"
1284 message="GET Template request failed for template: ${header.templateName}, ${exception.stacktrace}" />
1285 <setHeader headerName="CamelHttpResponseCode">
1286 <constant>500</constant>
1289 <simple>GET Template FAILED</simple>
1295 <get uri="/v2/templates/names" outType="java.lang.String[]"
1296 produces="application/json">
1298 <removeHeaders pattern="*" />
1301 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
1303 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1305 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
1307 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1309 <exception>java.lang.Exception</exception>
1311 <constant>true</constant>
1314 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1315 <log loggingLevel="ERROR"
1316 message="GET All Template names request failed for template: ${exception.stacktrace}" />
1317 <setHeader headerName="CamelHttpResponseCode">
1318 <constant>500</constant>
1321 <simple>GET All Template names FAILED</simple>
1327 <get uri="/v2/templates/{templateName}/svgRepresentation"
1328 outType="java.lang.String" produces="application/xml">
1330 <removeHeaders pattern="*" excludePattern="templateName" />
1333 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation for Loop template')" />
1335 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1337 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getSvgRepresentation(${header.templateName})" />
1339 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1341 <exception>java.lang.Exception</exception>
1343 <constant>true</constant>
1346 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1347 <log loggingLevel="ERROR"
1348 message="GET SVG for template failed for template: ${header.templateName}, ${exception.stacktrace}" />
1349 <setHeader headerName="CamelHttpResponseCode">
1350 <constant>500</constant>
1353 <simple>GET SVG for Template FAILED</simple>
1359 <get uri="/v2/clampInformation" outType="org.onap.clamp.clds.model.ClampInformation"
1360 produces="application/json">
1362 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=getClampInformation()" />