blob: 66ea46fcc92bde0a333e8e8a133138b3b933f918 [file] [log] [blame]
c0014910726b7c9d2017-08-31 14:27:38 +08001<?xml version="1.0" encoding="UTF-8"?>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +08002<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns="http://java.sun.com/xml/ns/javaee"
4 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
5 id="WebApp_ID" version="3.0">
6 <display-name>mso-vfc-adapter</display-name>
c0014910726b7c9d2017-08-31 14:27:38 +08007
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +08008 <context-param>
9 <param-name>resteasy.jndi.resources</param-name>
10 <param-value>java:module/MsoPropertiesFactory,java:module/CloudConfigFactory</param-value>
11 </context-param>
c0014910726b7c9d2017-08-31 14:27:38 +080012
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080013 <context-param>
14 <param-name>log.configuration</param-name>
15 <param-value>logback.vfc.xml</param-value>
16 </context-param>
17 <context-param>
18 <param-name>mso.configuration</param-name>
c00149107d3c4fa02018-01-22 10:52:39 +080019 <param-value>MSO_PROP_VFC_ADAPTER=mso.vfc.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080020 </context-param>
21 <context-param>
22 <param-name>mso.cloud_config.configuration</param-name>
23 <param-value>cloud_config.json=2</param-value>
24 </context-param>
25 <context-param>
26 <param-name>resteasy.resources</param-name>
27 <param-value>
c0014910726b7c9d2017-08-31 14:27:38 +080028 org.openecomp.mso.MsoStatusHandler,
29 org.openecomp.mso.logger.MsoLoggingServlet,
30 org.openecomp.mso.adapters.vfc.HealthCheckHandler,
31 org.openecomp.mso.adapters.vfc.VfcAdapterRest
32 </param-value>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080033 </context-param>
34 <context-param>
35 <param-name>resteasy.servlet.mapping.prefix</param-name>
36 <param-value>/rest</param-value>
37 </context-param>
38 <servlet>
39 <servlet-name>Resteasy</servlet-name>
40 <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
41 </servlet>
42 <servlet-mapping>
43 <servlet-name>Resteasy</servlet-name>
c00149107a13d6f42017-10-18 11:48:21 +080044 <url-pattern>/rest/*</url-pattern>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080045 </servlet-mapping>
46 <security-constraint>
47 <web-resource-collection>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080048 <web-resource-name>SiteStatus</web-resource-name>
49 <description>SiteStatus APIs</description>
50 <url-pattern>/rest/setStatus/*</url-pattern>
51 <http-method>POST</http-method>
52 </web-resource-collection>
53 <auth-constraint>
54 <role-name>SiteControl-Client</role-name>
55 </auth-constraint>
56 </security-constraint>
57 <security-constraint>
58 <web-resource-collection>
59 <web-resource-name>RestRequests</web-resource-name>
60 <description>Rest Ingress Requests</description>
c00149107a13d6f42017-10-18 11:48:21 +080061 <url-pattern>/rest/v1/vfcadapter/*</url-pattern>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +080062 <http-method>DELETE</http-method>
63 <http-method>GET</http-method>
64 <http-method>POST</http-method>
65 <http-method>PUT</http-method>
66 </web-resource-collection>
67 <auth-constraint>
68 <role-name>BPEL-Client</role-name>
69 </auth-constraint>
70 </security-constraint>
71 <security-constraint>
72 <web-resource-collection>
73 <web-resource-name>MSO internal Requests</web-resource-name>
74 <description>Internal Requests</description>
75 <url-pattern>/rest/logging/*</url-pattern>
76 <url-pattern>/rest/properties/*</url-pattern>
77 <http-method>POST</http-method>
78 <http-method>GET</http-method>
79 </web-resource-collection>
80 <auth-constraint>
81 <role-name>MSO-Client</role-name>
82 </auth-constraint>
83 </security-constraint>
84 <login-config>
85 <auth-method>BASIC</auth-method>
86 <realm-name>ApplicationRealm</realm-name>
87 </login-config>
88 <security-role>
89 <role-name>BPEL-Client</role-name>
90 </security-role>
91 <security-role>
92 <role-name>SiteControl-Client</role-name>
93 </security-role>
94 <security-role>
95 <role-name>MSO-Client</role-name>
96 </security-role>
97 <filter>
c0014910726b7c9d2017-08-31 14:27:38 +080098 <filter-name>LogFilter</filter-name>
99 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +0800100 </filter>
101 <filter-mapping>
c0014910726b7c9d2017-08-31 14:27:38 +0800102 <filter-name>LogFilter</filter-name>
103 <url-pattern>/*</url-pattern>
104 </filter-mapping>
Seshu-Kumar-Mf8696082017-10-11 20:39:35 +0800105 <welcome-file-list>
106 <welcome-file>check.html</welcome-file>
107 </welcome-file-list>
c0014910726b7c9d2017-08-31 14:27:38 +0800108</web-app>
109