blob: 910b466fa582b9244202ae1eca410987c4506ebf [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<?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>
xg353yb6b7bef2017-04-11 13:30:42 +02005
6
ChrisC025301d2017-01-31 11:40:03 +01007 <!-- 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
xg353yb6b7bef2017-04-11 13:30:42 +020018 <!-- The next context parameters are all optional.
ChrisC025301d2017-01-31 11:40:03 +010019 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>
xg353yb6b7bef2017-04-11 13:30:42 +020048
49 <!--
ChrisC025301d2017-01-31 11:40:03 +010050 <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>
xg353yb6b7bef2017-04-11 13:30:42 +020059
ChrisC025301d2017-01-31 11:40:03 +010060 <context-param>
61 <param-name>mso.configuration</param-name>
Rob Daugherty38f72072018-03-14 02:07:32 -040062 <param-value>MSO_PROP_ASDC=mso.asdc.json,MSO_PROP_TOPOLOGY=topology.properties,MSO_ASDC_CLIENTS=mso.asdc.clients.properties</param-value>
ChrisC025301d2017-01-31 11:40:03 +010063 </context-param>
xg353yb6b7bef2017-04-11 13:30:42 +020064
ChrisC025301d2017-01-31 11:40:03 +010065 <context-param>
66 <param-name>resteasy.resources</param-name>
67 <param-value>org.openecomp.mso.logger.MsoLoggingServlet,org.openecomp.mso.asdc.healthcheck.HealthCheckHandler</param-value>
68 </context-param>
xg353yb6b7bef2017-04-11 13:30:42 +020069
ChrisC025301d2017-01-31 11:40:03 +010070 <listener>
71 <listener-class>
72 org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
73 </listener-class>
74 </listener>
75 <servlet>
76 <servlet-name>asdccontroller-servlet</servlet-name>
77 <servlet-class>
78 org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
79 </servlet-class>
80 </servlet>
81 <servlet-mapping>
82 <servlet-name>asdccontroller-servlet</servlet-name>
83 <url-pattern>/*</url-pattern>
84 </servlet-mapping>
85
86 <filter>
87 <filter-name>LogFilter</filter-name>
xg353yb6b7bef2017-04-11 13:30:42 +020088 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +010089 </filter>
90 <filter-mapping>
91 <filter-name>LogFilter</filter-name>
92 <url-pattern>/*</url-pattern>
93 </filter-mapping>
94
95 <security-constraint>
96 <web-resource-collection>
97 <web-resource-name>SiteStatus</web-resource-name>
98 <description>SiteStatus APIs</description>
99 <url-pattern>/setStatus/*</url-pattern>
100 <http-method>POST</http-method>
101 </web-resource-collection>
102 <auth-constraint>
103 <role-name>SiteControl-Client</role-name>
104 </auth-constraint>
105 </security-constraint>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700106 <security-constraint>
107 <web-resource-collection>
108 <web-resource-name>MSO internal Requests</web-resource-name>
109 <description>Internal Requests</description>
110 <url-pattern>/logging/*</url-pattern>
111 <url-pattern>/properties/*</url-pattern>
112 <http-method>POST</http-method>
113 <http-method>GET</http-method>
114 </web-resource-collection>
115 <auth-constraint>
116 <role-name>MSO-Client</role-name>
117 </auth-constraint>
118 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100119 <login-config>
120 <auth-method>BASIC</auth-method>
121 <realm-name>ApplicationRealm</realm-name>
122 </login-config>
123 <security-role>
124 <role-name>SiteControl-Client</role-name>
125 </security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700126 <security-role>
127 <role-name>MSO-Client</role-name>
128 </security-role>
ChrisC025301d2017-01-31 11:40:03 +0100129</web-app>