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-sdnc-adapter</display-name> |
| 4 | <welcome-file-list> |
| 5 | <welcome-file>check.html</welcome-file> |
| 6 | </welcome-file-list> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 7 | |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 8 | <context-param> |
| 9 | <param-name>resteasy.jndi.resources</param-name> |
| 10 | <param-value>java:module/MsoPropertiesFactory,java:module/CloudConfigFactory</param-value> |
| 11 | </context-param> |
| 12 | <context-param> |
| 13 | <param-name>log.configuration</param-name> |
| 14 | <param-value>logback.sdnc.xml</param-value> |
| 15 | </context-param> |
| 16 | <context-param> |
| 17 | <param-name>mso.configuration</param-name> |
| 18 | <param-value>MSO_PROP_SDNC_ADAPTER=mso.sdnc.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value> |
| 19 | </context-param> |
| 20 | <context-param> |
| 21 | <param-name>mso.cloud_config.configuration</param-name> |
| 22 | <param-value>cloud_config.json=2</param-value> |
| 23 | </context-param> |
| 24 | <context-param> |
| 25 | <param-name>resteasy.resources</param-name> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 26 | <param-value>org.openecomp.mso.logger.MsoLoggingServlet,org.openecomp.mso.adapters.sdnc.notify.SDNCNotifyResource,org.openecomp.mso.adapters.sdnc.impl.SDNCAdapterRestImpl,org.openecomp.mso.MsoStatusHandler,org.openecomp.mso.adapters.sdnc.sdncrest.SNIROResponse,org.openecomp.mso.adapters.sdnc.sdncrest.SDNCAdapterRest</param-value> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 27 | </context-param> |
| 28 | <context-param> |
| 29 | <param-name>resteasy.servlet.mapping.prefix</param-name> |
| 30 | <param-value>/rest</param-value> |
| 31 | </context-param> |
| 32 | <servlet> |
| 33 | <display-name>SDNCAdapter</display-name> |
| 34 | <servlet-name>SDNCAdapter</servlet-name> |
| 35 | <servlet-class>org.openecomp.mso.adapters.sdnc.impl.SDNCAdapterPortTypeImpl</servlet-class> |
| 36 | </servlet> |
| 37 | <servlet-mapping> |
| 38 | <servlet-name>SDNCAdapter</servlet-name> |
| 39 | <url-pattern>/SDNCAdapter</url-pattern> |
| 40 | </servlet-mapping> |
| 41 | <servlet> |
| 42 | <servlet-name>Resteasy</servlet-name> |
| 43 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> |
| 44 | </servlet> |
| 45 | <servlet-mapping> |
| 46 | <servlet-name>Resteasy</servlet-name> |
| 47 | <url-pattern>/rest/*</url-pattern> |
| 48 | </servlet-mapping> |
| 49 | |
| 50 | <filter> |
| 51 | <filter-name>LogFilter</filter-name> |
| 52 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class> |
| 53 | </filter> |
| 54 | <filter-mapping> |
| 55 | <filter-name>LogFilter</filter-name> |
| 56 | <url-pattern>/*</url-pattern> |
| 57 | </filter-mapping> |
| 58 | <listener> |
| 59 | <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class> |
| 60 | </listener> |
| 61 | |
| 62 | <security-constraint> |
| 63 | <web-resource-collection> |
| 64 | <web-resource-name>RestRequests</web-resource-name> |
| 65 | <description>Rest Ingress Requests</description> |
| 66 | <url-pattern>/rest/logging/*</url-pattern> |
| 67 | <url-pattern>/rest/properties/*</url-pattern> |
| 68 | <url-pattern>/rest/MSORequest</url-pattern> |
| 69 | <http-method>POST</http-method> |
| 70 | <http-method>GET</http-method> |
| 71 | </web-resource-collection> |
| 72 | <auth-constraint> |
| 73 | <role-name>MSO-Client</role-name> |
| 74 | </auth-constraint> |
| 75 | </security-constraint> |
| 76 | <security-constraint> |
| 77 | <web-resource-collection> |
| 78 | <web-resource-name>SDNCNotification</web-resource-name> |
| 79 | <description>Rest Async Notification from SDNC</description> |
| 80 | <url-pattern>/rest/SDNCNotify</url-pattern> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 81 | <url-pattern>/rest/SDNCNotify/*</url-pattern> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 82 | <http-method>POST</http-method> |
| 83 | </web-resource-collection> |
| 84 | <auth-constraint> |
| 85 | <role-name>SDNC-Client</role-name> |
| 86 | </auth-constraint> |
| 87 | </security-constraint> |
| 88 | <security-constraint> |
| 89 | <web-resource-collection> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 90 | <web-resource-name>SDNCRequests</web-resource-name> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 91 | <description>Soap Ingress Requests</description> |
| 92 | <url-pattern>/SDNCAdapter</url-pattern> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 93 | <url-pattern>/rest/v1/sdnc/*</url-pattern> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 94 | <http-method>POST</http-method> |
| 95 | </web-resource-collection> |
| 96 | <auth-constraint> |
| 97 | <role-name>BPEL-Client</role-name> |
| 98 | </auth-constraint> |
| 99 | </security-constraint> |
| 100 | <security-constraint> |
| 101 | <web-resource-collection> |
| 102 | <web-resource-name>SiteStatus</web-resource-name> |
| 103 | <description>SiteStatus APIs</description> |
| 104 | <url-pattern>/rest/setStatus/*</url-pattern> |
| 105 | <http-method>POST</http-method> |
| 106 | </web-resource-collection> |
| 107 | <auth-constraint> |
| 108 | <role-name>SiteControl-Client</role-name> |
| 109 | </auth-constraint> |
| 110 | </security-constraint> |
| 111 | |
| 112 | <login-config> |
| 113 | <auth-method>BASIC</auth-method> |
| 114 | <realm-name>ApplicationRealm</realm-name> |
| 115 | </login-config> |
| 116 | <security-role> |
| 117 | <role-name>SDNC-Client</role-name> |
| 118 | </security-role> |
| 119 | <security-role> |
| 120 | <role-name>MSO-Client</role-name> |
| 121 | </security-role> |
| 122 | <security-role> |
| 123 | <role-name>BPEL-Client</role-name> |
| 124 | </security-role> |
| 125 | <security-role> |
| 126 | <role-name>SiteControl-Client</role-name> |
| 127 | </security-role> |
| 128 | </web-app> |