blob: a0c726a6f4c56a066cdffc51af200ff2ab659b20 [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-network-adapter</display-name>
4
5 <context-param>
6 <param-name>resteasy.jndi.resources</param-name>
7 <param-value>java:module/MsoPropertiesFactory,java:module/CloudConfigFactory</param-value>
8 </context-param>
9
10 <context-param>
11 <param-name>log.configuration</param-name>
12 <param-value>logback.network.xml</param-value>
13 </context-param>
14 <context-param>
15 <param-name>mso.configuration</param-name>
16 <param-value>MSO_PROP_NETWORK_ADAPTER=mso.network.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
17 </context-param>
18 <context-param>
19 <param-name>mso.cloud_config.configuration</param-name>
20 <param-value>cloud_config.json=2</param-value>
21 </context-param>
22 <context-param>
23 <param-name>resteasy.resources</param-name>
24 <param-value>
25 org.openecomp.mso.MsoStatusHandler,
26 org.openecomp.mso.logger.MsoLoggingServlet,
27 org.openecomp.mso.adapters.network.HealthCheckHandler,
28 org.openecomp.mso.adapters.network.NetworkAdapterRest
29 </param-value>
30 </context-param>
31 <context-param>
32 <param-name>resteasy.servlet.mapping.prefix</param-name>
33 <param-value>/rest</param-value>
34 </context-param>
35 <servlet>
36 <servlet-name>Resteasy</servlet-name>
37 <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
38 </servlet>
39 <servlet-mapping>
40 <servlet-name>Resteasy</servlet-name>
41 <url-pattern>/rest/*</url-pattern>
42 </servlet-mapping>
43 <security-constraint>
44 <web-resource-collection>
45 <web-resource-name>SoapRequests</web-resource-name>
46 <description>Soap Ingress Requests</description>
47 <url-pattern>/NetworkAdapter</url-pattern>
48 <url-pattern>/NetworkAdapterAsync</url-pattern>
49 <http-method>POST</http-method>
50 </web-resource-collection>
51 <auth-constraint>
52 <role-name>BPEL-Client</role-name>
53 </auth-constraint>
54 </security-constraint>
55 <security-constraint>
56 <web-resource-collection>
57 <web-resource-name>SiteStatus</web-resource-name>
58 <description>SiteStatus APIs</description>
59 <url-pattern>/rest/setStatus/*</url-pattern>
60 <http-method>POST</http-method>
61 </web-resource-collection>
62 <auth-constraint>
63 <role-name>SiteControl-Client</role-name>
64 </auth-constraint>
65 </security-constraint>
66 <security-constraint>
67 <web-resource-collection>
68 <web-resource-name>RestRequests</web-resource-name>
69 <description>Rest Ingress Requests</description>
70 <url-pattern>/rest/v1/networks/*</url-pattern>
71 <http-method>DELETE</http-method>
72 <http-method>GET</http-method>
73 <http-method>POST</http-method>
74 <http-method>PUT</http-method>
75 </web-resource-collection>
76 <auth-constraint>
77 <role-name>BPEL-Client</role-name>
78 </auth-constraint>
79 </security-constraint>
80 <login-config>
81 <auth-method>BASIC</auth-method>
82 <realm-name>ApplicationRealm</realm-name>
83 </login-config>
84 <security-role>
85 <role-name>BPEL-Client</role-name>
86 </security-role>
87 <security-role>
88 <role-name>SiteControl-Client</role-name>
89 </security-role>
90 <filter>
91 <filter-name>LogFilter</filter-name>
92 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
93 </filter>
94 <filter-mapping>
95 <filter-name>LogFilter</filter-name>
96 <url-pattern>/*</url-pattern>
97 </filter-mapping>
98 <welcome-file-list>
99 <welcome-file>check.html</welcome-file>
100 </welcome-file-list>
101</web-app>
102