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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 5 |
|
| 6 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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 |
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 18 | <!-- The next context parameters are all optional.
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 48 |
|
| 49 | <!--
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 59 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 65 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 70 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 89 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 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>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame^] | 107 | <security-constraint>
|
| 108 | <web-resource-collection>
|
| 109 | <web-resource-name>MSO internal Requests</web-resource-name>
|
| 110 | <description>Internal Requests</description>
|
| 111 | <url-pattern>/logging/*</url-pattern>
|
| 112 | <url-pattern>/properties/*</url-pattern>
|
| 113 | <http-method>POST</http-method>
|
| 114 | <http-method>GET</http-method>
|
| 115 | </web-resource-collection>
|
| 116 | <auth-constraint>
|
| 117 | <role-name>MSO-Client</role-name>
|
| 118 | </auth-constraint>
|
| 119 | </security-constraint>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 120 | <login-config>
|
| 121 | <auth-method>BASIC</auth-method>
|
| 122 | <realm-name>ApplicationRealm</realm-name>
|
| 123 | </login-config>
|
| 124 | <security-role>
|
| 125 | <role-name>SiteControl-Client</role-name>
|
| 126 | </security-role>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame^] | 127 | <security-role>
|
| 128 | <role-name>MSO-Client</role-name>
|
| 129 | </security-role>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 130 | </web-app> |