blob: 9118bba5a8253ade226cf20da068fe1a5925fcca [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>
47 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
48 </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>
92 <login-config>
93 <auth-method>BASIC</auth-method>
94 <realm-name>ApplicationRealm</realm-name>
95 </login-config>
96 <security-role>
97 <role-name>BPEL-Client</role-name>
98 </security-role>
99 <security-role>
100 <role-name>SiteControl-Client</role-name>
101 </security-role>
102</web-app>
103