summaryrefslogtreecommitdiffstats
path: root/sparkybe-onap-application/config
diff options
context:
space:
mode:
authorwr148d <wr148d@att.com>2021-02-11 09:14:58 -0500
committerwr148d <wr148d@att.com>2021-02-11 09:16:26 -0500
commit4d750d21cffd991b4bc5b735455fc9fceb516937 (patch)
tree6465cd80ca211e1581e4600857a81137dc8c7865 /sparkybe-onap-application/config
parentfc96fb063d9acc08173ef659088a993baf5c0dbf (diff)
Update the Sparky backend to support proxying calls to resources and traversal
Issue-ID: AAI-3250 Change-Id: I1c4d587ca30ea379ae28697b95ba2ca4602cd4e8 Signed-off-by: wr148d <wr148d@att.com>
Diffstat (limited to 'sparkybe-onap-application/config')
-rw-r--r--sparkybe-onap-application/config/application.properties6
-rw-r--r--sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml15
2 files changed, 18 insertions, 3 deletions
diff --git a/sparkybe-onap-application/config/application.properties b/sparkybe-onap-application/config/application.properties
index c0616b5..cdebe11 100644
--- a/sparkybe-onap-application/config/application.properties
+++ b/sparkybe-onap-application/config/application.properties
@@ -3,18 +3,18 @@
#
spring.mvc.favicon.enabled=false
-#possible values: camel,http,ssl,portal,fe-dev,fe-prod,oxm-default,oxm-override,[resources|gizmo],sync,oxm-schema-dev,oxm-schema-prod
+#possible values: camel,http,ssl,portal,fe-dev,fe-prod,oxm-default,oxm-override,[resources|gizmo],sync,oxm-schema-dev,oxm-schema-prod,aai-proxy
#For oxm loading there needs to be a combo of [oxm-default OR oxm-override] AND [oxm-schema-dev OR oxm-schema-prod]
#
# Gizmo profile
#
-spring.profiles.active=camel,ssl,fe-dev,oxm-schema-dev,gizmo,oxm-default
+spring.profiles.active=camel,http,oxm-default,oxm-schema-dev,fe-dev,resources,aai-proxy
#
# Resources profile
#
-#spring.profiles.active=camel,http,fe-dev,oxm-schema-dev,resources,sync,oxm-override
+#spring.profiles.active=camel,http,fe-dev,oxm-schema-dev,resources,sync,oxm-override,aai-proxy
portal.cadiFileLocation=${CONFIG_HOME}/portal/cadi.properties
searchservice.hostname=127.0.0.1
diff --git a/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml b/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml
new file mode 100644
index 0000000..bb0b98d
--- /dev/null
+++ b/sparkybe-onap-application/config/spring-beans/sparky-aai-proxy.xml
@@ -0,0 +1,15 @@
+<beans profile="aai-proxy" xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="proxyClientAdapter" class="org.onap.aai.sparky.util.ProxyClient">
+ <constructor-arg ref="aaiRestEndpointConfig" />
+ </bean>
+
+ <bean id="proxyHelper" class="org.onap.aai.sparky.ProxyHelper">
+ <constructor-arg ref="proxyClientAdapter" />
+ </bean>
+
+</beans> \ No newline at end of file