c00149107 | 26b7c9d | 2017-08-31 14:27:38 +0800 | [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-vfc-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.vfc.xml</param-value> |
| 13 | </context-param> |
| 14 | <context-param> |
| 15 | <param-name>mso.configuration</param-name> |
| 16 | <param-value>MSO_PROP_NETWORK_ADAPTER=mso.vfc.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.vfc.HealthCheckHandler, |
| 28 | org.openecomp.mso.adapters.vfc.VfcAdapterRest |
| 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>/rest/*</url-pattern> |
| 42 | </servlet-mapping> |
| 43 | <security-constraint> |
| 44 | <web-resource-collection> |
| 45 | <web-resource-name>SoapRequests</web-resource-name> |
| 46 | <description>Soap Ingress Requests</description> |
| 47 | <url-pattern>/VfcAdapter</url-pattern> |
| 48 | <url-pattern>/VfcAdapterAsync</url-pattern> |
| 49 | <http-method>POST</http-method> |
| 50 | </web-resource-collection> |
| 51 | <auth-constraint> |
| 52 | <role-name>BPEL-Client</role-name> |
| 53 | </auth-constraint> |
| 54 | </security-constraint> |
| 55 | <security-constraint> |
| 56 | <web-resource-collection> |
| 57 | <web-resource-name>SiteStatus</web-resource-name> |
| 58 | <description>SiteStatus APIs</description> |
| 59 | <url-pattern>/rest/setStatus/*</url-pattern> |
| 60 | <http-method>POST</http-method> |
| 61 | </web-resource-collection> |
| 62 | <auth-constraint> |
| 63 | <role-name>SiteControl-Client</role-name> |
| 64 | </auth-constraint> |
| 65 | </security-constraint> |
| 66 | <security-constraint> |
| 67 | <web-resource-collection> |
| 68 | <web-resource-name>RestRequests</web-resource-name> |
| 69 | <description>Rest Ingress Requests</description> |
| 70 | <url-pattern>/rest/v1/vfc/*</url-pattern> |
| 71 | <http-method>DELETE</http-method> |
| 72 | <http-method>GET</http-method> |
| 73 | <http-method>POST</http-method> |
| 74 | <http-method>PUT</http-method> |
| 75 | </web-resource-collection> |
| 76 | <auth-constraint> |
| 77 | <role-name>BPEL-Client</role-name> |
| 78 | </auth-constraint> |
| 79 | </security-constraint> |
| 80 | <security-constraint> |
| 81 | <web-resource-collection> |
| 82 | <web-resource-name>MSO internal Requests</web-resource-name> |
| 83 | <description>Internal Requests</description> |
| 84 | <url-pattern>/rest/logging/*</url-pattern> |
| 85 | <url-pattern>/rest/properties/*</url-pattern> |
| 86 | <http-method>POST</http-method> |
| 87 | <http-method>GET</http-method> |
| 88 | </web-resource-collection> |
| 89 | <auth-constraint> |
| 90 | <role-name>MSO-Client</role-name> |
| 91 | </auth-constraint> |
| 92 | </security-constraint> |
| 93 | <login-config> |
| 94 | <auth-method>BASIC</auth-method> |
| 95 | <realm-name>ApplicationRealm</realm-name> |
| 96 | </login-config> |
| 97 | <security-role> |
| 98 | <role-name>BPEL-Client</role-name> |
| 99 | </security-role> |
| 100 | <security-role> |
| 101 | <role-name>SiteControl-Client</role-name> |
| 102 | </security-role> |
| 103 | <security-role> |
| 104 | <role-name>MSO-Client</role-name> |
| 105 | </security-role> |
| 106 | <filter> |
| 107 | <filter-name>LogFilter</filter-name> |
| 108 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
| 109 | </filter> |
| 110 | <filter-mapping> |
| 111 | <filter-name>LogFilter</filter-name> |
| 112 | <url-pattern>/*</url-pattern> |
| 113 | </filter-mapping> |
| 114 | <welcome-file-list> |
| 115 | <welcome-file>check.html</welcome-file> |
| 116 | </welcome-file-list> |
| 117 | </web-app> |
| 118 | |