Update the Sparky backend to support proxying calls to resources and traversal
[aai/sparky-be.git] / sparkybe-onap-application / config / spring-beans / sparky-aai-proxy.xml
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 (file)
index 0000000..bb0b98d
--- /dev/null
@@ -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