blob: 780bdd08ee38836a3f60d0d68bacd522d752084b [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-tenant-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.tenant.xml</param-value>
13 </context-param>
14 <context-param>
15 <param-name>mso.configuration</param-name>
16 <param-value>MSO_PROP_TENANT_ADAPTER=mso.tenant.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.logger.MsoLoggingServlet,
26 org.openecomp.mso.MsoStatusHandler,
27 org.openecomp.mso.adapters.tenant.HealthCheckHandler,
28 org.openecomp.mso.adapters.tenant.TenantAdapterRest
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>/admin/*</url-pattern> -->
42 <url-pattern>/rest/*</url-pattern>
43 </servlet-mapping>
44
45 <filter>
46 <filter-name>LogFilter</filter-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070047 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +010048 </filter>
49 <filter-mapping>
50 <filter-name>LogFilter</filter-name>
51 <url-pattern>/*</url-pattern>
52 </filter-mapping>
53 <welcome-file-list>
54 <welcome-file>/check.html</welcome-file>
55 </welcome-file-list>
56 <security-constraint>
57 <web-resource-collection>
58 <web-resource-name>SoapRequests</web-resource-name>
59 <description>Soap Ingress Requests</description>
60 <url-pattern>/TenantAdapter</url-pattern>
61 <http-method>POST</http-method>
62 </web-resource-collection>
63 <auth-constraint>
64 <role-name>BPEL-Client</role-name>
65 </auth-constraint>
66 </security-constraint>
67 <security-constraint>
68 <web-resource-collection>
69 <web-resource-name>SiteStatus</web-resource-name>
70 <description>SiteStatus APIs</description>
71 <url-pattern>/rest/setStatus/*</url-pattern>
72 <http-method>POST</http-method>
73 </web-resource-collection>
74 <auth-constraint>
75 <role-name>SiteControl-Client</role-name>
76 </auth-constraint>
77 </security-constraint>
78 <security-constraint>
79 <web-resource-collection>
80 <web-resource-name>RestRequests</web-resource-name>
81 <description>Rest Ingress Requests</description>
82 <url-pattern>/rest/v1/tenants/*</url-pattern>
83 <http-method>DELETE</http-method>
84 <http-method>GET</http-method>
85 <http-method>POST</http-method>
86 <http-method>PUT</http-method>
87 </web-resource-collection>
88 <auth-constraint>
89 <role-name>BPEL-Client</role-name>
90 </auth-constraint>
91 </security-constraint>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070092 <security-constraint>
93 <web-resource-collection>
94 <web-resource-name>MSO internal Requests</web-resource-name>
95 <description>Internal Requests</description>
96 <url-pattern>/rest/logging/*</url-pattern>
97 <url-pattern>/rest/properties/*</url-pattern>
98 <http-method>POST</http-method>
99 <http-method>GET</http-method>
100 </web-resource-collection>
101 <auth-constraint>
102 <role-name>MSO-Client</role-name>
103 </auth-constraint>
104 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100105 <login-config>
106 <auth-method>BASIC</auth-method>
107 <realm-name>ApplicationRealm</realm-name>
108 </login-config>
109 <security-role>
110 <role-name>BPEL-Client</role-name>
111 </security-role>
112 <security-role>
113 <role-name>SiteControl-Client</role-name>
114 </security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700115 <security-role>
116 <role-name>MSO-Client</role-name>
117 </security-role>
ChrisC025301d2017-01-31 11:40:03 +0100118</web-app>
119