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.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
288 uri="bean:org.onap.clamp.loop.LoopController?method=refreshMicroServicePolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.microServicePolicyName})" />
289 <log loggingLevel="INFO"
290 message="REFRESH Micro Service policy request successfully executed for loop: ${header.loopName}" />
292 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Micro Service policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
294 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
296 <exception>java.lang.Exception</exception>
298 <constant>true</constant>
301 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
302 <log loggingLevel="ERROR"
303 message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
305 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
306 <setHeader headerName="CamelHttpResponseCode">
307 <constant>500</constant>
310 <simple>REFRESH json schema request FAILED</simple>
316 <put uri="/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}"
317 outType="org.onap.clamp.loop.Loop" produces="application/json">
319 <removeHeaders pattern="*" excludePattern="loopName|operationalPolicyName" />
321 <log loggingLevel="INFO"
322 message="Refresh Operational Policy UI for loop: ${header.loopName} and ${header.operationalPolicyName}" />
324 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Operational Policy UI request')" />
326 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
327 <to uri="direct:load-loop" />
329 uri="bean:org.onap.clamp.loop.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
331 uri="bean:org.onap.clamp.loop.LoopController?method=refreshOperationalPolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.operationalPolicyName})" />
332 <log loggingLevel="INFO"
333 message="REFRESH operational policy request successfully executed for loop: ${header.loopName}" />
335 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH operational policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
337 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
339 <exception>java.lang.Exception</exception>
341 <constant>true</constant>
344 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
345 <log loggingLevel="ERROR"
346 message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
348 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
349 <setHeader headerName="CamelHttpResponseCode">
350 <constant>500</constant>
353 <simple>REFRESH json schema request FAILED</simple>
359 <put uri="/v2/loop/undeploy/{loopName}"
360 outType="org.onap.clamp.loop.Loop" produces="application/json">
362 <removeHeaders pattern="*" excludePattern="loopName" />
364 <log loggingLevel="INFO"
365 message="DCAE UNDEPLOY request for loop: ${header.loopName}" />
367 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE UNDEPLOY request')" />
369 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
370 <to uri="direct:load-loop" />
372 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE UNDEPLOY request','INFO',${exchangeProperty[loopObject]})" />
373 <to uri="direct:undeploy-loop" />
375 <log loggingLevel="INFO"
376 message="UNDEPLOY request successfully executed for loop: ${header.loopName}" />
378 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
380 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
382 <exception>java.lang.Exception</exception>
384 <constant>true</constant>
387 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
388 <log loggingLevel="ERROR"
389 message="UNDEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
391 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
392 <setHeader headerName="CamelHttpResponseCode">
393 <constant>500</constant>
396 <simple>UNDEPLOY request FAILED</simple>
402 <put uri="/v2/loop/stop/{loopName}"
403 outType="org.onap.clamp.loop.Loop" produces="application/json">
405 <removeHeaders pattern="*" excludePattern="loopName" />
407 <log loggingLevel="INFO"
408 message="STOP request for loop: ${header.loopName}" />
410 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" />
412 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
413 <to uri="direct:load-loop" />
415 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request','INFO',${exchangeProperty[loopObject]})" />
417 <to uri="direct:remove-all-policy-from-active-pdp-group" />
418 <log loggingLevel="INFO"
419 message="STOP request successfully executed for loop: ${header.loopName}" />
421 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request successfully executed','INFO',${exchangeProperty[loopObject]})" />
423 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
425 <exception>java.lang.Exception</exception>
427 <constant>true</constant>
430 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
431 <log loggingLevel="ERROR"
432 message="STOP request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
434 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
435 <setHeader headerName="CamelHttpResponseCode">
436 <constant>500</constant>
439 <simple>STOP request FAILED</simple>
445 <put uri="/v2/loop/restart/{loopName}"
446 outType="org.onap.clamp.loop.Loop" produces="application/json">
448 <removeHeaders pattern="*" excludePattern="loopName" />
450 <log loggingLevel="INFO"
451 message="RESTART request for loop: ${header.loopName}" />
453 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" />
455 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
456 <to uri="direct:load-loop" />
459 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" />
461 <to uri="direct:add-all-to-active-pdp-group" />
462 <log loggingLevel="INFO"
463 message="RESTART request successfully executed for loop: ${header.loopName}" />
465 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" />
467 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
469 <exception>java.lang.Exception</exception>
471 <constant>true</constant>
474 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
475 <log loggingLevel="ERROR"
476 message="RESTART request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
478 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
479 <setHeader headerName="CamelHttpResponseCode">
480 <constant>500</constant>
483 <simple>RESTART request FAILED</simple>
489 <put uri="/v2/loop/submit/{loopName}"
490 outType="org.onap.clamp.loop.Loop" produces="application/json">
492 <removeHeaders pattern="*" excludePattern="loopName" />
494 <log loggingLevel="INFO"
495 message="POLICY SUBMIT request for loop: ${header.loopName}" />
497 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" />
499 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
500 <to uri="direct:load-loop" />
502 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" />
503 <setProperty propertyName="raiseHttpExceptionFlag">
504 <simple resultType="java.lang.Boolean">false</simple>
506 <to uri="direct:remove-all-policy-from-active-pdp-group" />
507 <log loggingLevel="INFO"
508 message="Processing all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
510 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
512 <setProperty propertyName="policy">
513 <simple>${body}</simple>
515 <log loggingLevel="INFO"
516 message="Processing Micro Service Policy: ${exchangeProperty[policy].getName()}" />
517 <setProperty propertyName="raiseHttpExceptionFlag">
518 <simple resultType="java.lang.Boolean">false</simple>
520 <to uri="direct:delete-policy" />
521 <to uri="direct:create-policy" />
523 <log loggingLevel="INFO"
524 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
526 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
528 <setProperty propertyName="policy">
529 <simple>${body}</simple>
531 <log loggingLevel="INFO"
532 message="Processing Operational Policy: ${exchangeProperty[policy].getName()}" />
533 <setProperty propertyName="raiseHttpExceptionFlag">
534 <simple resultType="java.lang.Boolean">false</simple>
537 <to uri="direct:delete-policy" />
538 <to uri="direct:create-policy" />
542 <constant>3000</constant>
545 <to uri="direct:add-all-to-active-pdp-group" />
547 <log loggingLevel="INFO"
548 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
550 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
552 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
554 <exception>java.lang.Exception</exception>
556 <constant>true</constant>
559 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
560 <log loggingLevel="ERROR"
561 message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
563 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
564 <setHeader headerName="CamelHttpResponseCode">
565 <constant>500</constant>
568 <simple>SUBMIT request FAILED</simple>
574 <put uri="/v2/loop/delete/{loopName}">
576 <removeHeaders pattern="*" excludePattern="loopName" />
578 <log loggingLevel="INFO"
579 message="DELETE request for loop: ${header.loopName}" />
581 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
583 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
584 <to uri="direct:load-loop" />
586 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
587 <to uri="direct:undeploy-loop" />
588 <to uri="direct:remove-all-policy-from-active-pdp-group" />
589 <log loggingLevel="INFO"
590 message="Deleting all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
592 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
594 <setProperty propertyName="policy">
595 <simple>${body}</simple>
597 <log loggingLevel="INFO"
598 message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" />
599 <setProperty propertyName="raiseHttpExceptionFlag">
600 <simple resultType="java.lang.Boolean">false</simple>
602 <to uri="direct:delete-policy" />
604 <log loggingLevel="INFO"
605 message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
607 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
609 <setProperty propertyName="policy">
610 <simple>${body}</simple>
612 <log loggingLevel="INFO"
613 message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" />
614 <setProperty propertyName="raiseHttpExceptionFlag">
615 <simple resultType="java.lang.Boolean">false</simple>
617 <to uri="direct:delete-policy" />
620 uri="bean:org.onap.clamp.loop.LoopController?method=deleteLoop(${header.loopName})" />
621 <log loggingLevel="INFO"
622 message="DELETE request successfully executed for loop: ${header.loopName}" />
624 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
626 <exception>java.lang.Exception</exception>
628 <constant>true</constant>
631 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
632 <log loggingLevel="ERROR"
633 message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
635 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
636 <setHeader headerName="CamelHttpResponseCode">
637 <constant>500</constant>
640 <simple>DELETE request FAILED</simple>
646 <get uri="/v2/loop/getstatus/{loopName}"
647 outType="org.onap.clamp.loop.Loop" produces="application/json">
649 <removeHeaders pattern="*" excludePattern="loopName" />
651 <log loggingLevel="INFO"
652 message="GET STATUS request for loop: ${header.loopName}" />
654 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
656 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
657 <to uri="direct:load-loop" />
659 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
660 <to uri="direct:update-policy-status-for-loop" />
661 <to uri="direct:update-dcae-status-for-loop" />
662 <to uri="direct:update-loop-state" />
665 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request successfully executed','INFO',${exchangeProperty[loopObject]})" />
667 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
669 <exception>java.lang.Exception</exception>
671 <constant>true</constant>
674 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
675 <log loggingLevel="ERROR"
676 message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
678 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
682 <simple>${exchangeProperty[loopObject]}</simple>
684 <setHeader headerName="CamelHttpResponseCode">
685 <constant>200</constant>
692 <put uri="/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
694 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
697 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
699 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
700 <to uri="direct:load-loop" />
702 uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
704 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
706 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
708 <exception>java.lang.Exception</exception>
710 <constant>true</constant>
713 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
714 <log loggingLevel="ERROR"
715 message="ADD operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
717 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
718 <setHeader headerName="CamelHttpResponseCode">
719 <constant>500</constant>
722 <simple>ADD Operational policy request FAILED for loop: ${header.loopName}, ${exception.message}"</simple>
729 <put uri="/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}" outType="org.onap.clamp.loop.Loop" produces="application/json">
731 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion|policyName" />
734 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REMOVE operational Policy')" />
736 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
737 <to uri="direct:load-loop" />
738 <setProperty propertyName="policyName">
739 <simple>${header.policyName}</simple>
741 <setProperty propertyName="policy">
742 <simple>${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)}</simple>
744 <setProperty propertyName="raiseHttpExceptionFlag">
745 <simple resultType="java.lang.Boolean">false</simple>
747 <to uri="direct:remove-one-policy-from-active-pdp-group" />
748 <setProperty propertyName="raiseHttpExceptionFlag">
749 <simple resultType="java.lang.Boolean">false</simple>
751 <to uri="direct:delete-policy" />
753 uri="bean:org.onap.clamp.loop.LoopController?method=removeOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
755 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
757 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
759 <exception>java.lang.Exception</exception>
761 <constant>true</constant>
764 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
765 <log loggingLevel="ERROR"
766 message="REMOVE operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
768 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
769 <setHeader headerName="CamelHttpResponseCode">
770 <constant>500</constant>
773 <simple>REMOVE Operational policy request FAILED</simple>
780 uri="/v2/loop/create/{loopName}?templateName={templateName}"
781 outType="org.onap.clamp.loop.Loop" consumes="application/json"
782 produces="application/json">
786 excludePattern="loopName|templateName" />
789 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Create Loop')" />
791 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
793 uri="bean:org.onap.clamp.loop.LoopController?method=createLoop(${header.loopName}, ${header.templateName})" />
795 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
797 <exception>java.lang.Exception</exception>
799 <constant>true</constant>
802 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
803 <log loggingLevel="ERROR"
804 message="CREATE Loop from Template request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
806 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('CREATE Loop from template request failed','ERROR',${exchangeProperty[loopObject]})" />
807 <setHeader headerName="CamelHttpResponseCode">
808 <constant>500</constant>
811 <simple>CREATE Loop from template FAILED</simple>
817 <get uri="/v2/dictionary"
818 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
820 <removeHeaders pattern="*" />
823 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
825 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
827 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
829 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
831 <exception>java.lang.Exception</exception>
833 <constant>true</constant>
836 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
837 <log loggingLevel="ERROR"
838 message="GET Dictionary request failed: ${exception.stacktrace}" />
839 <setHeader headerName="CamelHttpResponseCode">
840 <constant>500</constant>
843 <simple>GET Dictionary FAILED</simple>
850 <get uri="/v2/dictionary/secondary/names"
851 outType="java.lang.String[]" produces="application/json">
853 <removeHeaders pattern="*" />
856 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
858 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
860 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
862 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
864 <exception>java.lang.Exception</exception>
866 <constant>true</constant>
869 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
870 <log loggingLevel="ERROR"
871 message="GET Dictionary request failed: ${exception.stacktrace}" />
872 <setHeader headerName="CamelHttpResponseCode">
873 <constant>500</constant>
876 <simple>GET Dictionary FAILED</simple>
882 <get uri="/v2/dictionary/{dictionaryName}"
883 outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
885 <removeHeaders pattern="*"
886 excludePattern="dictionaryName" />
889 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
891 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
893 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
895 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
897 <exception>java.lang.Exception</exception>
899 <constant>true</constant>
902 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
903 <log loggingLevel="ERROR"
904 message="GET Dictionary request failed for: ${header.dictionaryName}, ${exception.stacktrace}" />
905 <setHeader headerName="CamelHttpResponseCode">
906 <constant>500</constant>
909 <simple>GET Dictionary FAILED</simple>
915 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
916 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
917 produces="application/json">
921 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
923 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
924 <setProperty propertyName="DictionaryObject">
925 <simple>${body}</simple>
928 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
930 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
932 <exception>java.lang.Exception</exception>
934 <constant>true</constant>
937 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
938 <log loggingLevel="ERROR"
939 message="PUT Dictionary request failed for: ${exception.stacktrace}" />
940 <setHeader headerName="CamelHttpResponseCode">
941 <constant>500</constant>
944 <simple>PUT Dictionary FAILED</simple>
951 <put uri="/v2/dictionary/{name}"
952 type="org.onap.clamp.tosca.Dictionary"
953 outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
954 produces="application/json">
956 <removeHeaders pattern="*" excludePattern="name" />
959 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
961 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
962 <setProperty propertyName="DictionaryObject">
963 <simple>${body}</simple>
966 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
968 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
970 <exception>java.lang.Exception</exception>
972 <constant>true</constant>
975 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
976 <log loggingLevel="ERROR"
977 message="PUT Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
978 <setHeader headerName="CamelHttpResponseCode">
979 <constant>500</constant>
982 <simple>PUT Dictionary FAILED</simple>
989 <delete uri="/v2/dictionary/{name}" produces="application/json">
991 <removeHeaders pattern="*" excludePattern="name" />
994 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
996 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
998 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
1000 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1002 <exception>java.lang.Exception</exception>
1004 <constant>true</constant>
1007 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1008 <log loggingLevel="ERROR"
1009 message="DELETE Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
1010 <setHeader headerName="CamelHttpResponseCode">
1011 <constant>500</constant>
1014 <simple>DELETE Dictionary FAILED</simple>
1021 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
1022 produces="application/json">
1024 <removeHeaders pattern="*"
1025 excludePattern="name|shortName" />
1028 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
1030 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1032 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
1034 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1036 <exception>java.lang.Exception</exception>
1038 <constant>true</constant>
1041 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1042 <log loggingLevel="ERROR"
1043 message="DELETE Dictionary element request failed for: ${header.name}, ${exception.stacktrace}" />
1044 <setHeader headerName="CamelHttpResponseCode">
1045 <constant>500</constant>
1048 <simple>DELETE Dictionary element FAILED</simple>
1055 <get uri="/v2/policyToscaModels"
1056 outType="org.onap.clamp.loop.template.PolicyModel"
1057 produces="application/json">
1059 <removeHeaders pattern="*" />
1062 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
1064 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1066 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
1068 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1070 <exception>java.lang.Exception</exception>
1072 <constant>true</constant>
1075 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1076 <log loggingLevel="ERROR"
1077 message="GET Policy Models request failed for: ${exception.stacktrace}" />
1078 <setHeader headerName="CamelHttpResponseCode">
1079 <constant>500</constant>
1082 <simple>GET Policy models FAILED</simple>
1088 <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1089 outType="org.onap.clamp.loop.template.PolicyModel"
1090 produces="application/json">
1092 <removeHeaders pattern="*"
1093 excludePattern="policyModelType|policyModelVersion" />
1096 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
1098 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1100 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
1102 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1104 <exception>java.lang.Exception</exception>
1106 <constant>true</constant>
1109 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1110 <log loggingLevel="ERROR"
1111 message="GET Policy Model request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1112 <setHeader headerName="CamelHttpResponseCode">
1113 <constant>500</constant>
1116 <simple>GET Policy model FAILED</simple>
1122 <get uri="/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}"
1123 outType="java.lang.String" produces="application/json">
1125 <removeHeaders pattern="*"
1126 excludePattern="policyModelType|policyModelVersion" />
1129 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
1131 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1133 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
1135 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1137 <exception>java.lang.Exception</exception>
1139 <constant>true</constant>
1142 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1143 <log loggingLevel="ERROR"
1144 message="GET Policy Model YAML request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1145 <setHeader headerName="CamelHttpResponseCode">
1146 <constant>500</constant>
1149 <simple>GET Policy model YAML FAILED</simple>
1156 <post uri="/v2/policyToscaModels"
1157 type="java.lang.String"
1158 outType="org.onap.clamp.loop.template.PolicyModel"
1159 consumes="plain/text" produces="application/json">
1161 <removeHeaders pattern="*"/>
1164 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1166 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1167 <setProperty propertyName="PolicyModelTosca">
1168 <simple>${body}</simple>
1171 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
1173 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1175 <exception>java.lang.Exception</exception>
1177 <constant>true</constant>
1180 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1181 <log loggingLevel="ERROR"
1182 message="POST Policy Model YAML request failed: ${exception.stacktrace}" />
1183 <setHeader headerName="CamelHttpResponseCode">
1184 <constant>500</constant>
1187 <simple>POST Policy model YAML FAILED</simple>
1193 <put uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1194 type="java.lang.String"
1195 outType="org.onap.clamp.loop.template.PolicyModel"
1196 consumes="plain/text" produces="application/json">
1198 <removeHeaders pattern="*"
1199 excludePattern="policyModelType|policyModelVersion" />
1202 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1204 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1205 <setProperty propertyName="PolicyModelTosca">
1206 <simple>${body}</simple>
1209 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=updatePolicyModelTosca(${header.policyModelType},${policyModelVersion},${exchangeProperty[PolicyModelTosca]})" />
1211 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1213 <exception>java.lang.Exception</exception>
1215 <constant>true</constant>
1218 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1219 <log loggingLevel="ERROR"
1220 message="MODIFY Policy Model YAML request failed: ${exception.stacktrace}" />
1221 <setHeader headerName="CamelHttpResponseCode">
1222 <constant>500</constant>
1225 <simple>MODIFY Policy model YAML FAILED</simple>
1232 <get uri="/v2/templates"
1233 outType="org.onap.clamp.loop.template.LoopTemplate"
1234 produces="application/json">
1236 <removeHeaders pattern="*" />
1239 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
1241 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1243 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
1245 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1247 <exception>java.lang.Exception</exception>
1249 <constant>true</constant>
1252 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1253 <log loggingLevel="ERROR"
1254 message="GET ALL templates request failed: ${exception.stacktrace}" />
1255 <setHeader headerName="CamelHttpResponseCode">
1256 <constant>500</constant>
1259 <simple>GET ALL templates FAILED</simple>
1265 <get uri="/v2/templates/{templateName}"
1266 outType="org.onap.clamp.loop.template.LoopTemplate"
1267 produces="application/json">
1269 <removeHeaders pattern="*"
1270 excludePattern="templateName" />
1273 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
1275 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1277 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
1279 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1281 <exception>java.lang.Exception</exception>
1283 <constant>true</constant>
1286 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1287 <log loggingLevel="ERROR"
1288 message="GET Template request failed for template: ${header.templateName}, ${exception.stacktrace}" />
1289 <setHeader headerName="CamelHttpResponseCode">
1290 <constant>500</constant>
1293 <simple>GET Template FAILED</simple>
1299 <get uri="/v2/templates/names" outType="java.lang.String[]"
1300 produces="application/json">
1302 <removeHeaders pattern="*" />
1305 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
1307 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1309 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
1311 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1313 <exception>java.lang.Exception</exception>
1315 <constant>true</constant>
1318 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1319 <log loggingLevel="ERROR"
1320 message="GET All Template names request failed for template: ${exception.stacktrace}" />
1321 <setHeader headerName="CamelHttpResponseCode">
1322 <constant>500</constant>
1325 <simple>GET All Template names FAILED</simple>
1331 <get uri="/v2/templates/{templateName}/svgRepresentation"
1332 outType="java.lang.String" produces="application/xml">
1334 <removeHeaders pattern="*" excludePattern="templateName" />
1337 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation for Loop template')" />
1339 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1341 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getSvgRepresentation(${header.templateName})" />
1343 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1345 <exception>java.lang.Exception</exception>
1347 <constant>true</constant>
1350 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1351 <log loggingLevel="ERROR"
1352 message="GET SVG for template failed for template: ${header.templateName}, ${exception.stacktrace}" />
1353 <setHeader headerName="CamelHttpResponseCode">
1354 <constant>500</constant>
1357 <simple>GET SVG for Template FAILED</simple>
1363 <get uri="/v2/clampInformation" outType="org.onap.clamp.clds.model.ClampInformation"
1364 produces="application/json">
1366 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=getClampInformation()" />