2bf394bb2616c4d86565b973e121d899d44d22a7
[netconf.git] / restconf / restconf-nb / src / main / resources / OSGI-INF / blueprint / restconf-bp.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2017 Pantheon technologies s.r.o. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">
11   <!-- Restconf providers -->
12   <cm:property-placeholder persistent-id="org.opendaylight.restconf.nb.rfc8040">
13     <cm:default-properties>
14       <cm:property name="maximum-fragment-length" value="0"/>
15       <cm:property name="heartbeat-interval" value="10000"/>
16       <cm:property name="idle-timeout" value="30000"/>
17       <cm:property name="ping-executor-name-prefix" value="ping-executor"/>
18       <cm:property name="max-thread-count" value="1"/>
19       <cm:property name="use-sse" value="true"/>
20     </cm:default-properties>
21   </cm:property-placeholder>
22
23   <reference id="databindProvider" interface="org.opendaylight.restconf.nb.rfc8040.databind.DatabindProvider"/>
24   <reference id="customFilterAdapterConfiguration" interface="org.opendaylight.aaa.filterchain.configuration.CustomFilterAdapterConfiguration"/>
25   <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/>
26   <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/>
27   <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport"/>
28   <reference id="dOMActionService" interface="org.opendaylight.mdsal.dom.api.DOMActionService"/>
29   <reference id="dOMDataBroker" interface="org.opendaylight.mdsal.dom.api.DOMDataBroker"/>
30   <reference id="dOMMountPointService" interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
31   <reference id="dOMNotificationService" interface="org.opendaylight.mdsal.dom.api.DOMNotificationService"/>
32   <reference id="dOMRpcService" interface="org.opendaylight.mdsal.dom.api.DOMRpcService"/>
33   <reference id="dOMSchemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
34
35   <bean id="restconfNorthbound" class="org.opendaylight.restconf.nb.rfc8040.JaxRsNorthbound" destroy-method="close">
36     <argument ref="webServer"/>
37     <argument ref="webContextSecurer"/>
38     <argument ref="servletSupport"/>
39     <argument ref="customFilterAdapterConfiguration"/>
40     <argument ref="dOMActionService"/>
41     <argument ref="dOMDataBroker"/>
42     <argument ref="dOMMountPointService"/>
43     <argument ref="dOMNotificationService"/>
44     <argument ref="dOMRpcService"/>
45     <argument ref="dOMSchemaService"/>
46     <argument ref="databindProvider"/>
47     <argument value="${ping-executor-name-prefix}"/>
48     <argument value="${max-thread-count}"/>
49     <argument value="${maximum-fragment-length}"/>
50     <argument value="${heartbeat-interval}"/>
51     <argument value="${idle-timeout}"/>
52     <argument value="${use-sse}"/>
53   </bean>
54 </blueprint>