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> |
| 82 | <login-config> |
| 83 | <auth-method>BASIC</auth-method> |
| 84 | <realm-name>ApplicationRealm</realm-name> |
| 85 | </login-config> |
| 86 | <security-role> |
| 87 | <role-name>BPEL-Client</role-name> |
| 88 | </security-role> |
| 89 | <security-role> |
| 90 | <role-name>SiteControl-Client</role-name> |
| 91 | </security-role> |
| 92 | |
| 93 | <filter> |
| 94 | <filter-name>LogFilter</filter-name> |
| 95 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
| 96 | </filter> |
| 97 | <filter-mapping> |
| 98 | <filter-name>LogFilter</filter-name> |
| 99 | <url-pattern>/*</url-pattern> |
| 100 | </filter-mapping> |
| 101 | </web-app> |