Skip to content

Commit

Permalink
MOSIP-23678 : kafka support for securezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Monobikash Das committed Apr 21, 2023
1 parent 0dbf2bd commit 229b749
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 112 deletions.
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-activate-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-deactivate-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-lost-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-opencrvs_new-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-res-reprint-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-res-update-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down
15 changes: 1 addition & 14 deletions registration-processor-camel-routes-update-default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,7 @@
<to uri="workflow-cmd://complete-as-failed" />
</when>
<otherwise>
<process ref="tokenGenerationProcessor" />
<setHeader headerName="CamelHttpMethod">
<constant>POST</constant>
</setHeader>
<setHeader headerName="Content-Type">
<constant>application/json</constant>
</setHeader>
<setHeader headerName="Cookie">
<simple>${header.Cookie}</simple>
</setHeader>
<setBody>
<simple>${bodyAs(String)}</simple>
</setBody>
<to uri="http://regproc-group2.regproc/registrationprocessor/v1/securezone/notification" />
<to uri="eventbus://securezone-notification-bus-in" />
</otherwise>
</choice>
</route>
Expand Down

0 comments on commit 229b749

Please sign in to comment.