update sparky with configurable features
[aai/sparky-be.git] / sparkybe-onap-application / config / spring-beans / sparky-global-search.xml
1 <beans xmlns="http://www.springframework.org/schema/beans"
2         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="
4                http://www.springframework.org/schema/beans
5                http://www.springframework.org/schema/beans/spring-beans.xsd">
6
7         <bean id="searchServiceRestEndpointConfig" class="org.onap.aai.sparky.dal.rest.config.RestEndpointConfig">
8                 <property name="endpointIpAddress" value="${searchservice.hostname:127.0.0.1}" />
9                 <property name="endpointServerPort" value="${searchservice.port:9509}" />
10                 <property name="numRequestRetries" value="5" />
11                 <property name="restAuthenticationMode" value="SSL_CERT" />
12                 <property name="connectTimeoutInMs" value="60000" />
13                 <property name="readTimeoutInMs" value="30000" />
14                 <property name="certFileName" value="/auth/${searchservice.client-cert}" />
15                 <property name="certPassword" value="${searchservice.client-cert-password}" />
16                 <property name="truststoreFileName" value="/auth/${searchservice.truststore}" />
17                 <property name="validateServerCertChain" value="false" />
18                 <property name="validateServerHostname" value="false" />
19                 <property name="resourceLoader" ref="sparkyResourceLoader" />
20         </bean>
21
22         <bean id="searchServiceAdapter" class="org.onap.aai.sparky.search.SearchServiceAdapter">
23                 <constructor-arg ref="searchServiceRestEndpointConfig" />
24                 <constructor-arg name="serviceApiVersion" value="v1" />
25                 <property name="appPartnerName" value="${searchservice.appPartnerName:AAI-UI}" />
26         </bean>
27 </beans>