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-vnf-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.vnf.xml</param-value> |
| 13 | </context-param> |
| 14 | <context-param> |
| 15 | <param-name>mso.configuration</param-name> |
| 16 | <param-value>MSO_PROP_VNF_ADAPTER=mso.vnf.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.MsoStatusHandler, |
| 26 | org.openecomp.mso.logger.MsoLoggingServlet, |
| 27 | org.openecomp.mso.adapters.vnf.HealthCheckHandler, |
| 28 | org.openecomp.mso.adapters.vnf.VnfAdapterRest, |
| 29 | org.openecomp.mso.adapters.vnf.VolumeAdapterRest |
| 30 | </param-value> |
| 31 | </context-param> |
| 32 | <context-param> |
| 33 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 34 | <param-value>/rest</param-value> |
| 35 | </context-param> |
| 36 | <servlet> |
| 37 | <servlet-name>Resteasy</servlet-name> |
| 38 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 39 | </servlet> |
| 40 | <servlet-mapping> |
| 41 | <servlet-name>Resteasy</servlet-name> |
| 42 | <url-pattern>/rest/*</url-pattern> |
| 43 | </servlet-mapping> |
| 44 | |
| 45 | <security-constraint> |
| 46 | <web-resource-collection> |
| 47 | <web-resource-name>RestRequests</web-resource-name> |
| 48 | <description>Rest Ingress Requests</description> |
| 49 | <url-pattern>/rest/v1/*</url-pattern> |
| 50 | <http-method>POST</http-method> |
| 51 | <http-method>GET</http-method> |
| 52 | <http-method>PUT</http-method> |
| 53 | <http-method>DELETE</http-method> |
| 54 | </web-resource-collection> |
| 55 | <auth-constraint> |
| 56 | <role-name>BPEL-Client</role-name> |
| 57 | </auth-constraint> |
| 58 | </security-constraint> |
| 59 | <security-constraint> |
| 60 | <web-resource-collection> |
| 61 | <web-resource-name>SoapRequests</web-resource-name> |
| 62 | <description>Soap Ingress Requests</description> |
| 63 | <url-pattern>/VnfAdapter</url-pattern> |
| 64 | <url-pattern>/VnfAdapterAsync</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> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 82 | <security-constraint> |
| 83 | <web-resource-collection> |
| 84 | <web-resource-name>MSO internal Requests</web-resource-name> |
| 85 | <description>Internal Requests</description> |
| 86 | <url-pattern>/rest/logging/*</url-pattern> |
| 87 | <url-pattern>/rest/properties/*</url-pattern> |
| 88 | <http-method>POST</http-method> |
| 89 | <http-method>GET</http-method> |
| 90 | </web-resource-collection> |
| 91 | <auth-constraint> |
| 92 | <role-name>MSO-Client</role-name> |
| 93 | </auth-constraint> |
| 94 | </security-constraint> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 95 | <login-config> |
| 96 | <auth-method>BASIC</auth-method> |
| 97 | <realm-name>ApplicationRealm</realm-name> |
| 98 | </login-config> |
| 99 | <security-role> |
| 100 | <role-name>BPEL-Client</role-name> |
| 101 | </security-role> |
| 102 | <security-role> |
| 103 | <role-name>SiteControl-Client</role-name> |
| 104 | </security-role> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 105 | <security-role> |
| 106 | <role-name>MSO-Client</role-name> |
| 107 | </security-role> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 108 | |
| 109 | <filter> |
| 110 | <filter-name>LogFilter</filter-name> |
| 111 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
| 112 | </filter> |
| 113 | <filter-mapping> |
| 114 | <filter-name>LogFilter</filter-name> |
| 115 | <url-pattern>/*</url-pattern> |
| 116 | </filter-mapping> |
| 117 | </web-app> |