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 and Guard 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" />
537 <simple>${exchangeProperty['policy'].isLegacy()} == true
539 <log loggingLevel="INFO"
540 message="Processing all GUARD policies (LEGACY) defined in loop ${exchangeProperty[loopObject].getName()}" />
542 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
544 <setProperty propertyName="guardPolicy">
545 <simple>${body}</simple>
547 <log loggingLevel="INFO"
548 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
550 <setProperty propertyName="raiseHttpExceptionFlag">
551 <simple resultType="java.lang.Boolean">false</simple>
553 <to uri="direct:delete-guard-policy" />
554 <to uri="direct:create-guard-policy" />
561 <constant>3000</constant>
564 <to uri="direct:add-all-to-active-pdp-group" />
566 <log loggingLevel="INFO"
567 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
569 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
571 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
573 <exception>java.lang.Exception</exception>
575 <constant>true</constant>
578 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
579 <log loggingLevel="ERROR"
580 message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
582 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
583 <setHeader headerName="CamelHttpResponseCode">
584 <constant>500</constant>
587 <simple>SUBMIT request FAILED</simple>
593 <put uri="/v2/loop/delete/{loopName}">
595 <removeHeaders pattern="*" excludePattern="loopName" />
597 <log loggingLevel="INFO"
598 message="DELETE request for loop: ${header.loopName}" />
600 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
602 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
603 <to uri="direct:load-loop" />
605 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
606 <to uri="direct:undeploy-loop" />
607 <to uri="direct:remove-all-policy-from-active-pdp-group" />
609 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
611 <setProperty propertyName="microServicePolicy">
612 <simple>${body}</simple>
614 <log loggingLevel="INFO"
615 message="Processing Micro Service Policy: ${exchangeProperty[microServicePolicy].getName()}" />
616 <to uri="direct:delete-micro-service-policy" />
619 <log loggingLevel="INFO"
620 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
622 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
624 <setProperty propertyName="operationalPolicy">
625 <simple>${body}</simple>
627 <log loggingLevel="INFO"
628 message="Processing Operational Policy: ${exchangeProperty[operationalPolicy].getName()}" />
629 <to uri="direct:delete-operational-policy" />
630 <log loggingLevel="INFO"
631 message="Processing all GUARD policies defined in loop ${exchangeProperty[loopObject].getName()}" />
633 <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
635 <setProperty propertyName="guardPolicy">
636 <simple>${body}</simple>
638 <log loggingLevel="INFO"
639 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
640 <to uri="direct:delete-guard-policy" />
644 uri="bean:org.onap.clamp.loop.log.LoopController?method=deleteLoop(${header.loopName})" />
645 <log loggingLevel="INFO"
646 message="DELETE request successfully executed for loop: ${header.loopName}" />
648 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request successfully executed','INFO',${exchangeProperty[loopObject]})" />
650 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
652 <exception>java.lang.Exception</exception>
654 <constant>true</constant>
657 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
658 <log loggingLevel="ERROR"
659 message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
661 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
662 <setHeader headerName="CamelHttpResponseCode">
663 <constant>500</constant>
666 <simple>DELETE request FAILED</simple>
672 <get uri="/v2/loop/getstatus/{loopName}"
673 outType="org.onap.clamp.loop.Loop" produces="application/json">
675 <removeHeaders pattern="*" excludePattern="loopName" />
677 <log loggingLevel="INFO"
678 message="GET STATUS request for loop: ${header.loopName}" />
680 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
682 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
683 <to uri="direct:load-loop" />
685 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
687 <to uri="direct:update-policy-status-for-loop" />
688 <to uri="direct:update-dcae-status-for-loop" />
689 <to uri="direct:update-loop-state" />
692 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request successfully executed','INFO',${exchangeProperty[loopObject]})" />
694 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
697 <exception>java.lang.Exception</exception>
699 <constant>true</constant>
702 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
703 <log loggingLevel="ERROR"
704 message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
706 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
707 <setHeader headerName="CamelHttpResponseCode">
708 <constant>500</constant>
711 <simple>GET STATUS request FAILED</simple>
716 <simple>${exchangeProperty[loopObject]}</simple>
723 <put uri="/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
725 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
728 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
730 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
731 <to uri="direct:load-loop" />
733 uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
735 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
737 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
739 <exception>java.lang.Exception</exception>
741 <constant>true</constant>
744 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
745 <log loggingLevel="ERROR"
746 message="ADD operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
748 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
749 <setHeader headerName="CamelHttpResponseCode">
750 <constant>500</constant>
753 <simple>ADD Operational policy request FAILED</simple>
759 <put uri="/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
761 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
764 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REMOVE operational Policy')" />
766 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
767 <to uri="direct:load-loop" />
769 uri="bean:org.onap.clamp.loop.LoopController?method=removeOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
771 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
773 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
775 <exception>java.lang.Exception</exception>
777 <constant>true</constant>
780 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
781 <log loggingLevel="ERROR"
782 message="REMOVE operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
784 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
785 <setHeader headerName="CamelHttpResponseCode">
786 <constant>500</constant>
789 <simple>REMOVE Operational policy request FAILED</simple>
796 uri="/v2/loop/create/{loopName}?templateName={templateName}"
797 outType="org.onap.clamp.loop.Loop" consumes="application/json"
798 produces="application/json">
802 excludePattern="loopName|templateName" />
805 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Create Loop')" />
807 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
809 uri="bean:org.onap.clamp.loop.LoopController?method=createLoop(${header.loopName}, ${header.templateName})" />
811 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
813 <exception>java.lang.Exception</exception>
815 <constant>true</constant>
818 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
819 <log loggingLevel="ERROR"
820 message="CREATE Loop from Template request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
822 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('CREATE Loop from template request failed','ERROR',${exchangeProperty[loopObject]})" />
823 <setHeader headerName="CamelHttpResponseCode">
824 <constant>500</constant>
827 <simple>CREATE Loop from template FAILED</simple>
833 <get uri="/v2/dictionary"
834 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
836 <removeHeaders pattern="*" />
839 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
841 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
843 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
845 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
847 <exception>java.lang.Exception</exception>
849 <constant>true</constant>
852 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
853 <log loggingLevel="ERROR"
854 message="GET Dictionary request failed: ${exception.stacktrace}" />
855 <setHeader headerName="CamelHttpResponseCode">
856 <constant>500</constant>
859 <simple>GET Dictionary FAILED</simple>
866 <get uri="/v2/dictionary/secondary/names"
867 outType="java.lang.String[]" produces="application/json">
869 <removeHeaders pattern="*" />
872 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
874 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
876 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
878 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
880 <exception>java.lang.Exception</exception>
882 <constant>true</constant>
885 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
886 <log loggingLevel="ERROR"
887 message="GET Dictionary request failed: ${exception.stacktrace}" />
888 <setHeader headerName="CamelHttpResponseCode">
889 <constant>500</constant>
892 <simple>GET Dictionary FAILED</simple>
898 <get uri="/v2/dictionary/{dictionaryName}"
899 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
901 <removeHeaders pattern="*"
902 excludePattern="dictionaryName" />
905 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
907 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
909 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
911 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
913 <exception>java.lang.Exception</exception>
915 <constant>true</constant>
918 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
919 <log loggingLevel="ERROR"
920 message="GET Dictionary request failed for: ${header.dictionaryName}, ${exception.stacktrace}" />
921 <setHeader headerName="CamelHttpResponseCode">
922 <constant>500</constant>
925 <simple>GET Dictionary FAILED</simple>
931 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
932 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
933 produces="application/json">
937 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
939 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
940 <setProperty propertyName="DictionaryObject">
941 <simple>${body}</simple>
944 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
946 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
948 <exception>java.lang.Exception</exception>
950 <constant>true</constant>
953 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
954 <log loggingLevel="ERROR"
955 message="PUT Dictionary request failed for: ${exception.stacktrace}" />
956 <setHeader headerName="CamelHttpResponseCode">
957 <constant>500</constant>
960 <simple>PUT Dictionary FAILED</simple>
967 <put uri="/v2/dictionary/{name}"
968 type="org.onap.clamp.tosca.Dictionary"
969 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
970 produces="application/json">
972 <removeHeaders pattern="*" excludePattern="name" />
975 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
977 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
978 <setProperty propertyName="DictionaryObject">
979 <simple>${body}</simple>
982 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
984 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
986 <exception>java.lang.Exception</exception>
988 <constant>true</constant>
991 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
992 <log loggingLevel="ERROR"
993 message="PUT Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
994 <setHeader headerName="CamelHttpResponseCode">
995 <constant>500</constant>
998 <simple>PUT Dictionary FAILED</simple>
1005 <delete uri="/v2/dictionary/{name}" produces="application/json">
1007 <removeHeaders pattern="*" excludePattern="name" />
1010 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
1012 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1014 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
1016 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1018 <exception>java.lang.Exception</exception>
1020 <constant>true</constant>
1023 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1024 <log loggingLevel="ERROR"
1025 message="DELETE Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
1026 <setHeader headerName="CamelHttpResponseCode">
1027 <constant>500</constant>
1030 <simple>DELETE Dictionary FAILED</simple>
1037 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
1038 produces="application/json">
1040 <removeHeaders pattern="*"
1041 excludePattern="name|shortName" />
1044 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
1046 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1048 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
1050 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1052 <exception>java.lang.Exception</exception>
1054 <constant>true</constant>
1057 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1058 <log loggingLevel="ERROR"
1059 message="DELETE Dictionary element request failed for: ${header.name}, ${exception.stacktrace}" />
1060 <setHeader headerName="CamelHttpResponseCode">
1061 <constant>500</constant>
1064 <simple>DELETE Dictionary element FAILED</simple>
1071 <get uri="/v2/policyToscaModels"
1072 outType="org.onap.clamp.loop.template.PolicyModel"
1073 produces="application/json">
1075 <removeHeaders pattern="*" />
1078 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
1080 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1082 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
1084 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1086 <exception>java.lang.Exception</exception>
1088 <constant>true</constant>
1091 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1092 <log loggingLevel="ERROR"
1093 message="GET Policy Models request failed for: ${exception.stacktrace}" />
1094 <setHeader headerName="CamelHttpResponseCode">
1095 <constant>500</constant>
1098 <simple>GET Policy models FAILED</simple>
1104 <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1105 outType="org.onap.clamp.loop.template.PolicyModel"
1106 produces="application/json">
1108 <removeHeaders pattern="*"
1109 excludePattern="policyModelType|policyModelVersion" />
1112 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
1114 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1116 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
1118 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1120 <exception>java.lang.Exception</exception>
1122 <constant>true</constant>
1125 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1126 <log loggingLevel="ERROR"
1127 message="GET Policy Model request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1128 <setHeader headerName="CamelHttpResponseCode">
1129 <constant>500</constant>
1132 <simple>GET Policy model FAILED</simple>
1138 <get uri="/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}"
1139 outType="java.lang.String" produces="application/json">
1141 <removeHeaders pattern="*"
1142 excludePattern="policyModelType|policyModelVersion" />
1145 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
1147 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1149 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
1151 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1153 <exception>java.lang.Exception</exception>
1155 <constant>true</constant>
1158 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1159 <log loggingLevel="ERROR"
1160 message="GET Policy Model YAML request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1161 <setHeader headerName="CamelHttpResponseCode">
1162 <constant>500</constant>
1165 <simple>GET Policy model YAML FAILED</simple>
1172 <post uri="/v2/policyToscaModels"
1173 type="java.lang.String"
1174 outType="org.onap.clamp.loop.template.PolicyModel"
1175 consumes="plain/text" produces="application/json">
1177 <removeHeaders pattern="*"/>
1180 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1182 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1183 <setProperty propertyName="PolicyModelTosca">
1184 <simple>${body}</simple>
1187 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
1189 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1191 <exception>java.lang.Exception</exception>
1193 <constant>true</constant>
1196 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1197 <log loggingLevel="ERROR"
1198 message="POST Policy Model YAML request failed: ${exception.stacktrace}" />
1199 <setHeader headerName="CamelHttpResponseCode">
1200 <constant>500</constant>
1203 <simple>POST Policy model YAML FAILED</simple>
1209 <put uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1210 type="java.lang.String"
1211 outType="org.onap.clamp.loop.template.PolicyModel"
1212 consumes="plain/text" produces="application/json">
1214 <removeHeaders pattern="*"
1215 excludePattern="policyModelType|policyModelVersion" />
1218 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1220 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1221 <setProperty propertyName="PolicyModelTosca">
1222 <simple>${body}</simple>
1225 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=updatePolicyModelTosca(${header.policyModelType},${policyModelVersion},${exchangeProperty[PolicyModelTosca]})" />
1227 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1229 <exception>java.lang.Exception</exception>
1231 <constant>true</constant>
1234 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1235 <log loggingLevel="ERROR"
1236 message="MODIFY Policy Model YAML request failed: ${exception.stacktrace}" />
1237 <setHeader headerName="CamelHttpResponseCode">
1238 <constant>500</constant>
1241 <simple>MODIFY Policy model YAML FAILED</simple>
1248 <get uri="/v2/templates"
1249 outType="org.onap.clamp.loop.template.LoopTemplate"
1250 produces="application/json">
1252 <removeHeaders pattern="*" />
1255 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
1257 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1259 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
1261 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1263 <exception>java.lang.Exception</exception>
1265 <constant>true</constant>
1268 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1269 <log loggingLevel="ERROR"
1270 message="GET ALL templates request failed: ${exception.stacktrace}" />
1271 <setHeader headerName="CamelHttpResponseCode">
1272 <constant>500</constant>
1275 <simple>GET ALL templates FAILED</simple>
1281 <get uri="/v2/templates/{templateName}"
1282 outType="org.onap.clamp.loop.template.LoopTemplate"
1283 produces="application/json">
1285 <removeHeaders pattern="*"
1286 excludePattern="templateName" />
1289 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
1291 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1293 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
1295 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1297 <exception>java.lang.Exception</exception>
1299 <constant>true</constant>
1302 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1303 <log loggingLevel="ERROR"
1304 message="GET Template request failed for template: ${header.templateName}, ${exception.stacktrace}" />
1305 <setHeader headerName="CamelHttpResponseCode">
1306 <constant>500</constant>
1309 <simple>GET Template FAILED</simple>
1315 <get uri="/v2/templates/names" outType="java.lang.String[]"
1316 produces="application/json">
1318 <removeHeaders pattern="*" />
1321 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
1323 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1325 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
1327 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1329 <exception>java.lang.Exception</exception>
1331 <constant>true</constant>
1334 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1335 <log loggingLevel="ERROR"
1336 message="GET All Template names request failed for template: ${exception.stacktrace}" />
1337 <setHeader headerName="CamelHttpResponseCode">
1338 <constant>500</constant>
1341 <simple>GET All Template names FAILED</simple>
1347 <get uri="/v2/templates/{templateName}/svgRepresentation"
1348 outType="java.lang.String" produces="application/xml">
1350 <removeHeaders pattern="*" excludePattern="templateName" />
1353 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation for Loop template')" />
1355 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1357 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getSvgRepresentation(${header.templateName})" />
1359 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1361 <exception>java.lang.Exception</exception>
1363 <constant>true</constant>
1366 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1367 <log loggingLevel="ERROR"
1368 message="GET SVG for template failed for template: ${header.templateName}, ${exception.stacktrace}" />
1369 <setHeader headerName="CamelHttpResponseCode">
1370 <constant>500</constant>
1373 <simple>GET SVG for Template FAILED</simple>
1379 <get uri="/v2/clampInformation" outType="org.onap.clamp.clds.model.ClampInformation"
1380 produces="application/json">
1382 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=getClampInformation()" />