18df807b850608c706fc5594deaed894274c4891
[so.git] / adapters / mso-workflow-message-adapter / WebContent / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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"
6          version="3.0">
7   <display-name>mso-workflow-message-adapter</display-name>
8   <welcome-file-list>
9     <welcome-file>check.html</welcome-file>
10   </welcome-file-list>
11   <context-param>
12     <param-name>log.configuration</param-name>
13     <param-value>logback.workflow-message-adapter.xml</param-value>
14   </context-param>
15   <context-param>
16     <param-name>mso.configuration</param-name>
17     <param-value>MSO_PROP_WORKFLOW_MESSAGE_ADAPTER=mso.workflow-message-adapter.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
18   </context-param>
19   <context-param>
20         <param-name>mso.cloud_config.configuration</param-name>
21         <param-value>cloud_config.json=2</param-value>
22   </context-param>
23   <context-param>
24     <param-name>resteasy.resources</param-name>
25     <param-value>
26         org.openecomp.mso.logger.MsoLoggingServlet,
27         org.openecomp.mso.MsoStatusHandler,
28         org.openecomp.mso.adapters.workflowmessage.WMAdapterRest
29     </param-value>
30   </context-param>
31   <servlet>
32     <servlet-name>Resteasy</servlet-name>
33     <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
34   </servlet>
35   <servlet-mapping>
36     <servlet-name>Resteasy</servlet-name>
37     <url-pattern>/*</url-pattern>
38   </servlet-mapping>
39   <filter>
40     <filter-name>LogFilter</filter-name>
41     <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
42   </filter>
43   <filter-mapping>
44     <filter-name>LogFilter</filter-name>
45     <url-pattern>/*</url-pattern>
46   </filter-mapping>
47   <listener>
48     <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
49   </listener>
50   <security-constraint>
51     <web-resource-collection>
52       <web-resource-name>SiteStatus</web-resource-name>
53       <description>SiteStatus APIs</description>
54       <url-pattern>/rest/setStatus/*</url-pattern>
55       <http-method>POST</http-method>
56     </web-resource-collection>
57     <auth-constraint>
58       <role-name>SiteControl-Client</role-name>
59     </auth-constraint>
60   </security-constraint>
61   <security-constraint>
62     <web-resource-collection>
63       <web-resource-name>MSO internal Requests</web-resource-name>
64       <description>Internal Requests</description>
65       <url-pattern>/rest/logging/*</url-pattern>
66       <url-pattern>/rest/properties/*</url-pattern>
67       <http-method>POST</http-method>
68       <http-method>GET</http-method>
69     </web-resource-collection>
70     <auth-constraint>
71       <role-name>MSO-Client</role-name>
72     </auth-constraint>
73   </security-constraint>
74   <login-config>
75     <auth-method>BASIC</auth-method>
76     <realm-name>ApplicationRealm</realm-name>
77   </login-config>
78   <security-role>
79     <role-name>SiteControl-Client</role-name>
80   </security-role>
81   <security-role>
82     <role-name>MSO-Client</role-name>
83   </security-role>
84 </web-app>