ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
|
| 3 | <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">
|
| 4 | <display-name>ASDC Controller</display-name>
|
| 5 |
|
| 6 |
|
| 7 | <!-- enable the Asynchronous Job Service -->
|
| 8 | <context-param>
|
| 9 | <param-name>resteasy.async.job.service.enabled</param-name>
|
| 10 | <param-value>true</param-value>
|
| 11 | </context-param>
|
| 12 |
|
| 13 | <context-param>
|
| 14 | <param-name>resteasy.jndi.resources</param-name>
|
| 15 | <param-value>java:module/MsoPropertiesFactory</param-value>
|
| 16 | </context-param>
|
| 17 |
|
| 18 | <!-- The next context parameters are all optional.
|
| 19 | Their default values are shown as example param-values -->
|
| 20 |
|
| 21 | <!-- How many jobs results can be held in memory at once? -->
|
| 22 | <context-param>
|
| 23 | <param-name>resteasy.async.job.service.max.job.results</param-name>
|
| 24 | <param-value>100</param-value>
|
| 25 | </context-param>
|
| 26 |
|
| 27 | <!-- Maximum wait time on a job when a client is querying for it -->
|
| 28 | <context-param>
|
| 29 | <param-name>resteasy.async.job.service.max.wait</param-name>
|
| 30 | <param-value>300000</param-value>
|
| 31 | </context-param>
|
| 32 |
|
| 33 | <!-- Thread pool size of background threads that run the job -->
|
| 34 | <context-param>
|
| 35 | <param-name>resteasy.async.job.service.thread.pool.size</param-name>
|
| 36 | <param-value>100</param-value>
|
| 37 | </context-param>
|
| 38 |
|
| 39 | <!-- Set the base path for the Job uris -->
|
| 40 | <context-param>
|
| 41 | <param-name>resteasy.async.job.service.base.path</param-name>
|
| 42 | <param-value>/asynch/jobs</param-value>
|
| 43 | </context-param>
|
| 44 | <context-param>
|
| 45 | <param-name>resteasy.scan</param-name>
|
| 46 | <param-value>true</param-value>
|
| 47 | </context-param>
|
| 48 |
|
| 49 | <!--
|
| 50 | <context-param>
|
| 51 | <param-name>resteasy.servlet.mapping.prefix</param-name>
|
| 52 | <param-value>/v1</param-value>
|
| 53 | </context-param>
|
| 54 | -->
|
| 55 | <context-param>
|
| 56 | <param-name>log.configuration</param-name>
|
| 57 | <param-value>logback.asdc.xml</param-value>
|
| 58 | </context-param>
|
| 59 |
|
| 60 | <context-param>
|
| 61 | <param-name>mso.configuration</param-name>
|
| 62 | <param-value>MSO_PROP_ASDC=mso.asdc.json,MSO_PROP_TOPOLOGY=topology.properties</param-value>
|
| 63 |
|
| 64 | </context-param>
|
| 65 |
|
| 66 | <context-param>
|
| 67 | <param-name>resteasy.resources</param-name>
|
| 68 | <param-value>org.openecomp.mso.logger.MsoLoggingServlet,org.openecomp.mso.asdc.healthcheck.HealthCheckHandler</param-value>
|
| 69 | </context-param>
|
| 70 |
|
| 71 | <listener>
|
| 72 | <listener-class>
|
| 73 | org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
|
| 74 | </listener-class>
|
| 75 | </listener>
|
| 76 | <servlet>
|
| 77 | <servlet-name>asdccontroller-servlet</servlet-name>
|
| 78 | <servlet-class>
|
| 79 | org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
|
| 80 | </servlet-class>
|
| 81 | </servlet>
|
| 82 | <servlet-mapping>
|
| 83 | <servlet-name>asdccontroller-servlet</servlet-name>
|
| 84 | <url-pattern>/*</url-pattern>
|
| 85 | </servlet-mapping>
|
| 86 |
|
| 87 | <filter>
|
| 88 | <filter-name>LogFilter</filter-name>
|
| 89 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
|
| 90 | </filter>
|
| 91 | <filter-mapping>
|
| 92 | <filter-name>LogFilter</filter-name>
|
| 93 | <url-pattern>/*</url-pattern>
|
| 94 | </filter-mapping>
|
| 95 |
|
| 96 | <security-constraint>
|
| 97 | <web-resource-collection>
|
| 98 | <web-resource-name>SiteStatus</web-resource-name>
|
| 99 | <description>SiteStatus APIs</description>
|
| 100 | <url-pattern>/setStatus/*</url-pattern>
|
| 101 | <http-method>POST</http-method>
|
| 102 | </web-resource-collection>
|
| 103 | <auth-constraint>
|
| 104 | <role-name>SiteControl-Client</role-name>
|
| 105 | </auth-constraint>
|
| 106 | </security-constraint>
|
| 107 | <login-config>
|
| 108 | <auth-method>BASIC</auth-method>
|
| 109 | <realm-name>ApplicationRealm</realm-name>
|
| 110 | </login-config>
|
| 111 | <security-role>
|
| 112 | <role-name>SiteControl-Client</role-name>
|
| 113 | </security-role>
|
| 114 | </web-app> |