blob: bb58197bf14745bc1b953c63116af688d9e808d8 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<?xml version="1.0" encoding="UTF-8"?>
2<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
3 <display-name>mso-sdnc-adapter</display-name>
4 <welcome-file-list>
5 <welcome-file>check.html</welcome-file>
6 </welcome-file-list>
7
8 <context-param>
9 <param-name>resteasy.jndi.resources</param-name>
10 <param-value>java:module/MsoPropertiesFactory,java:module/CloudConfigFactory</param-value>
11 </context-param>
12 <context-param>
13 <param-name>log.configuration</param-name>
14 <param-value>logback.sdnc.xml</param-value>
15 </context-param>
16 <context-param>
17 <param-name>mso.configuration</param-name>
18 <param-value>MSO_PROP_SDNC_ADAPTER=mso.sdnc.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
19 </context-param>
20 <context-param>
21 <param-name>mso.cloud_config.configuration</param-name>
22 <param-value>cloud_config.json=2</param-value>
23 </context-param>
24 <context-param>
25 <param-name>resteasy.resources</param-name>
26 <param-value>org.openecomp.mso.logger.MsoLoggingServlet,org.openecomp.mso.adapters.sdnc.notify.SDNCNotifyResource,org.openecomp.mso.adapters.sdnc.impl.SDNCAdapterRestImpl,org.openecomp.mso.MsoStatusHandler</param-value>
27 </context-param>
28 <context-param>
29 <param-name>resteasy.servlet.mapping.prefix</param-name>
30 <param-value>/rest</param-value>
31 </context-param>
32 <servlet>
33 <display-name>SDNCAdapter</display-name>
34 <servlet-name>SDNCAdapter</servlet-name>
35 <servlet-class>org.openecomp.mso.adapters.sdnc.impl.SDNCAdapterPortTypeImpl</servlet-class>
36 </servlet>
37 <servlet-mapping>
38 <servlet-name>SDNCAdapter</servlet-name>
39 <url-pattern>/SDNCAdapter</url-pattern>
40 </servlet-mapping>
41 <servlet>
42 <servlet-name>Resteasy</servlet-name>
43 <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
44 </servlet>
45 <servlet-mapping>
46 <servlet-name>Resteasy</servlet-name>
47 <url-pattern>/rest/*</url-pattern>
48 </servlet-mapping>
49
50 <filter>
51 <filter-name>LogFilter</filter-name>
52 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
53 </filter>
54 <filter-mapping>
55 <filter-name>LogFilter</filter-name>
56 <url-pattern>/*</url-pattern>
57 </filter-mapping>
58 <listener>
59 <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
60 </listener>
61
62 <security-constraint>
63 <web-resource-collection>
64 <web-resource-name>RestRequests</web-resource-name>
65 <description>Rest Ingress Requests</description>
66 <url-pattern>/rest/logging/*</url-pattern>
67 <url-pattern>/rest/properties/*</url-pattern>
68 <url-pattern>/rest/MSORequest</url-pattern>
69 <http-method>POST</http-method>
70 <http-method>GET</http-method>
71 </web-resource-collection>
72 <auth-constraint>
73 <role-name>MSO-Client</role-name>
74 </auth-constraint>
75 </security-constraint>
76 <security-constraint>
77 <web-resource-collection>
78 <web-resource-name>SDNCNotification</web-resource-name>
79 <description>Rest Async Notification from SDNC</description>
80 <url-pattern>/rest/SDNCNotify</url-pattern>
81 <http-method>POST</http-method>
82 </web-resource-collection>
83 <auth-constraint>
84 <role-name>SDNC-Client</role-name>
85 </auth-constraint>
86 </security-constraint>
87 <security-constraint>
88 <web-resource-collection>
89 <web-resource-name>SoapRequests</web-resource-name>
90 <description>Soap Ingress Requests</description>
91 <url-pattern>/SDNCAdapter</url-pattern>
92 <http-method>POST</http-method>
93 </web-resource-collection>
94 <auth-constraint>
95 <role-name>BPEL-Client</role-name>
96 </auth-constraint>
97 </security-constraint>
98 <security-constraint>
99 <web-resource-collection>
100 <web-resource-name>SiteStatus</web-resource-name>
101 <description>SiteStatus APIs</description>
102 <url-pattern>/rest/setStatus/*</url-pattern>
103 <http-method>POST</http-method>
104 </web-resource-collection>
105 <auth-constraint>
106 <role-name>SiteControl-Client</role-name>
107 </auth-constraint>
108 </security-constraint>
109
110 <login-config>
111 <auth-method>BASIC</auth-method>
112 <realm-name>ApplicationRealm</realm-name>
113 </login-config>
114 <security-role>
115 <role-name>SDNC-Client</role-name>
116 </security-role>
117 <security-role>
118 <role-name>MSO-Client</role-name>
119 </security-role>
120 <security-role>
121 <role-name>BPEL-Client</role-name>
122 </security-role>
123 <security-role>
124 <role-name>SiteControl-Client</role-name>
125 </security-role>
126</web-app>