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-network-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.network.xml</param-value> |
| 13 | </context-param> |
| 14 | <context-param> |
| 15 | <param-name>mso.configuration</param-name> |
| 16 | <param-value>MSO_PROP_NETWORK_ADAPTER=mso.network.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.network.HealthCheckHandler, |
| 28 | org.openecomp.mso.adapters.network.NetworkAdapterRest |
| 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>/rest/*</url-pattern> |
| 46 | </servlet-mapping> |
| 47 | <security-constraint> |
| 48 | <web-resource-collection> |
| 49 | <web-resource-name>SoapRequests</web-resource-name> |
| 50 | <description>Soap Ingress Requests</description> |
| 51 | <url-pattern>/NetworkAdapter</url-pattern> |
| 52 | <url-pattern>/NetworkAdapterAsync</url-pattern> |
| 53 | <http-method>POST</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>SiteStatus</web-resource-name> |
| 62 | <description>SiteStatus APIs</description> |
| 63 | <url-pattern>/rest/setStatus/*</url-pattern> |
| 64 | <http-method>POST</http-method> |
| 65 | </web-resource-collection> |
| 66 | <auth-constraint> |
| 67 | <role-name>SiteControl-Client</role-name> |
| 68 | </auth-constraint> |
| 69 | </security-constraint> |
| 70 | <security-constraint> |
| 71 | <web-resource-collection> |
| 72 | <web-resource-name>RestRequests</web-resource-name> |
| 73 | <description>Rest Ingress Requests</description> |
| 74 | <url-pattern>/rest/v1/networks/*</url-pattern> |
| 75 | <http-method>DELETE</http-method> |
| 76 | <http-method>GET</http-method> |
| 77 | <http-method>POST</http-method> |
| 78 | <http-method>PUT</http-method> |
| 79 | </web-resource-collection> |
| 80 | <auth-constraint> |
| 81 | <role-name>BPEL-Client</role-name> |
| 82 | </auth-constraint> |
| 83 | </security-constraint> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 84 | <security-constraint> |
| 85 | <web-resource-collection> |
| 86 | <web-resource-name>MSO internal Requests</web-resource-name> |
| 87 | <description>Internal Requests</description> |
| 88 | <url-pattern>/rest/logging/*</url-pattern> |
| 89 | <url-pattern>/rest/properties/*</url-pattern> |
| 90 | <http-method>POST</http-method> |
| 91 | <http-method>GET</http-method> |
| 92 | </web-resource-collection> |
| 93 | <auth-constraint> |
| 94 | <role-name>MSO-Client</role-name> |
| 95 | </auth-constraint> |
| 96 | </security-constraint> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 97 | <login-config> |
| 98 | <auth-method>BASIC</auth-method> |
| 99 | <realm-name>ApplicationRealm</realm-name> |
| 100 | </login-config> |
| 101 | <security-role> |
| 102 | <role-name>BPEL-Client</role-name> |
| 103 | </security-role> |
| 104 | <security-role> |
| 105 | <role-name>SiteControl-Client</role-name> |
| 106 | </security-role> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 107 | <security-role> |
| 108 | <role-name>MSO-Client</role-name> |
| 109 | </security-role> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 110 | <filter> |
| 111 | <filter-name>LogFilter</filter-name> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 112 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 113 | </filter> |
| 114 | <filter-mapping> |
| 115 | <filter-name>LogFilter</filter-name> |
| 116 | <url-pattern>/*</url-pattern> |
| 117 | </filter-mapping> |
| 118 | <welcome-file-list> |
| 119 | <welcome-file>check.html</welcome-file> |
| 120 | </welcome-file-list> |
| 121 | </web-app> |
| 122 | |