ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <?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> |
Rob Daugherty | 38f7207 | 2018-03-14 02:07:32 -0400 | [diff] [blame] | 32 | <param-name>resteasy.providers</param-name> |
| 33 | <param-value>org.openecomp.mso.adapters.providers.JettisonStyleMapperProvider</param-value> |
| 34 | </context-param> |
| 35 | <context-param> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 36 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 37 | <param-value>/rest</param-value> |
| 38 | </context-param> |
| 39 | <servlet> |
| 40 | <servlet-name>Resteasy</servlet-name> |
| 41 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 42 | </servlet> |
| 43 | <servlet-mapping> |
| 44 | <servlet-name>Resteasy</servlet-name> |
| 45 | <!-- <url-pattern>/admin/*</url-pattern> --> |
| 46 | <url-pattern>/rest/*</url-pattern> |
| 47 | </servlet-mapping> |
| 48 | |
| 49 | <filter> |
| 50 | <filter-name>LogFilter</filter-name> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 51 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 52 | </filter> |
| 53 | <filter-mapping> |
| 54 | <filter-name>LogFilter</filter-name> |
| 55 | <url-pattern>/*</url-pattern> |
| 56 | </filter-mapping> |
| 57 | <welcome-file-list> |
| 58 | <welcome-file>/check.html</welcome-file> |
| 59 | </welcome-file-list> |
| 60 | <security-constraint> |
| 61 | <web-resource-collection> |
| 62 | <web-resource-name>SoapRequests</web-resource-name> |
| 63 | <description>Soap Ingress Requests</description> |
| 64 | <url-pattern>/TenantAdapter</url-pattern> |
| 65 | <http-method>POST</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>SiteStatus</web-resource-name> |
| 74 | <description>SiteStatus APIs</description> |
| 75 | <url-pattern>/rest/setStatus/*</url-pattern> |
| 76 | <http-method>POST</http-method> |
| 77 | </web-resource-collection> |
| 78 | <auth-constraint> |
| 79 | <role-name>SiteControl-Client</role-name> |
| 80 | </auth-constraint> |
| 81 | </security-constraint> |
| 82 | <security-constraint> |
| 83 | <web-resource-collection> |
| 84 | <web-resource-name>RestRequests</web-resource-name> |
| 85 | <description>Rest Ingress Requests</description> |
| 86 | <url-pattern>/rest/v1/tenants/*</url-pattern> |
| 87 | <http-method>DELETE</http-method> |
| 88 | <http-method>GET</http-method> |
| 89 | <http-method>POST</http-method> |
| 90 | <http-method>PUT</http-method> |
| 91 | </web-resource-collection> |
| 92 | <auth-constraint> |
| 93 | <role-name>BPEL-Client</role-name> |
| 94 | </auth-constraint> |
| 95 | </security-constraint> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 96 | <security-constraint> |
| 97 | <web-resource-collection> |
| 98 | <web-resource-name>MSO internal Requests</web-resource-name> |
| 99 | <description>Internal Requests</description> |
| 100 | <url-pattern>/rest/logging/*</url-pattern> |
| 101 | <url-pattern>/rest/properties/*</url-pattern> |
| 102 | <http-method>POST</http-method> |
| 103 | <http-method>GET</http-method> |
| 104 | </web-resource-collection> |
| 105 | <auth-constraint> |
| 106 | <role-name>MSO-Client</role-name> |
| 107 | </auth-constraint> |
| 108 | </security-constraint> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 109 | <login-config> |
| 110 | <auth-method>BASIC</auth-method> |
| 111 | <realm-name>ApplicationRealm</realm-name> |
| 112 | </login-config> |
| 113 | <security-role> |
| 114 | <role-name>BPEL-Client</role-name> |
| 115 | </security-role> |
| 116 | <security-role> |
| 117 | <role-name>SiteControl-Client</role-name> |
| 118 | </security-role> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 119 | <security-role> |
| 120 | <role-name>MSO-Client</role-name> |
| 121 | </security-role> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 122 | </web-app> |
| 123 | |