blob: bbd7c61bb902532652a6c6baec211542cc8884b0 [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>MSO API Handler Infra</display-name>
Arthur Martella62cd6aa2017-09-08 13:27:46 -04005
6 <listener>
7 <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
8 </listener>
9
10 <context-param>
11 <param-name>resteasy.jndi.resources</param-name>
12 <param-value>java:module/MsoPropertiesFactory</param-value>
ChrisC025301d2017-01-31 11:40:03 +010013 </context-param>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040014
ChrisC025301d2017-01-31 11:40:03 +010015 <!-- enable the Asynchronous Job Service -->
16 <context-param>
17 <param-name>resteasy.async.job.service.enabled</param-name>
18 <param-value>true</param-value>
19 </context-param>
20
Arthur Martella62cd6aa2017-09-08 13:27:46 -040021 <!-- The next context parameters are all optional.
ChrisC025301d2017-01-31 11:40:03 +010022 Their default values are shown as example param-values -->
23
24 <!-- How many jobs results can be held in memory at once? -->
25 <context-param>
26 <param-name>resteasy.async.job.service.max.job.results</param-name>
27 <param-value>100</param-value>
28 </context-param>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040029
30 <!-- Maximum wait time on a job when a client is querying for it -->
ChrisC025301d2017-01-31 11:40:03 +010031 <context-param>
32 <param-name>resteasy.async.job.service.max.wait</param-name>
33 <param-value>300000</param-value>
34 </context-param>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040035
36 <context-param>
37 <param-name>resteasy.scan</param-name>
38 <param-value>true</param-value>
39 </context-param>
ChrisC025301d2017-01-31 11:40:03 +010040
41 <!-- Thread pool size of background threads that run the job -->
42 <context-param>
43 <param-name>resteasy.async.job.service.thread.pool.size</param-name>
44 <param-value>100</param-value>
45 </context-param>
46
47 <!-- Set the base path for the Job uris -->
48 <context-param>
49 <param-name>resteasy.async.job.service.base.path</param-name>
50 <param-value>/asynch/jobs</param-value>
51 </context-param>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040052
53 <context-param>
54 <param-name>log.configuration</param-name>
55 <param-value>logback.apihandler-infra.xml</param-value>
56 </context-param>
57
58 <context-param>
59 <param-name>mso.configuration</param-name>
60 <param-value>MSO_PROP_APIHANDLER_INFRA=mso.apihandler-infra.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
61 </context-param>
62
63 <context-param>
64 <param-name>resteasy.resources</param-name>
65 <param-value>org.openecomp.mso.logger.MsoLoggingServlet</param-value>
66 </context-param>
67
68 <servlet>
69 <servlet-name>resteasy-servlet</servlet-name>
70 <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
71 </servlet>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070072
Arthur Martella62cd6aa2017-09-08 13:27:46 -040073 <servlet-mapping>
74 <servlet-name>resteasy-servlet</servlet-name>
75 <url-pattern>/serviceInstances/*</url-pattern>
76 <url-pattern>/orchestrationRequests/*</url-pattern>
77 <url-pattern>/nodehealthcheck</url-pattern>
78 <url-pattern>/v1/*</url-pattern>
79 <url-pattern>/v2/*</url-pattern>
80 <url-pattern>/v3/*</url-pattern>
81 <url-pattern>/logging/*</url-pattern>
82 <url-pattern>/globalhealthcheck/*</url-pattern>
83 <url-pattern>/healthcheck/*</url-pattern>
84 <url-pattern>/setStatus/*</url-pattern>
85 <url-pattern>/properties/*</url-pattern>
86 <url-pattern>/api-docs/*</url-pattern>
87 <url-pattern>/tasks/*</url-pattern>
Seshu-Kumar-M0df37ac2017-09-21 09:38:10 +053088 <url-pattern>/e2eServiceInstances/*</url-pattern>
Rob Daugherty38f72072018-03-14 02:07:32 -040089 <url-pattern>/cloudResources/*</url-pattern>
90 <url-pattern>/cloudResourcesRequests/*</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040091 </servlet-mapping>
92
93 <!-- To be replaced by AAF in the future, when Camunda scripts replacing the BPEL scripts completely -->
ChrisC025301d2017-01-31 11:40:03 +010094 <security-constraint>
95 <web-resource-collection>
96 <web-resource-name>HealthcheckNoAuth</web-resource-name>
97 <description>No Authentication for Healthcheck</description>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040098 <url-pattern>/healthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +010099 <url-pattern>/globalhealthcheck</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400100 <url-pattern>/nodehealthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +0100101 <http-method>GET</http-method>
102 <http-method>POST</http-method>
103 </web-resource-collection>
104 </security-constraint>
105 <security-constraint>
106 <web-resource-collection>
107 <web-resource-name>SiteStatus</web-resource-name>
108 <description>SiteStatus APIs</description>
109 <url-pattern>/setStatus/*</url-pattern>
110 <http-method>POST</http-method>
111 </web-resource-collection>
112 <auth-constraint>
113 <role-name>SiteControl-Client</role-name>
114 </auth-constraint>
115 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400116 <security-constraint>
117 <web-resource-collection>
118 <web-resource-name>MSO internal Requests</web-resource-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700119 <description>Internal Requests</description>
120 <url-pattern>/logging/*</url-pattern>
121 <url-pattern>/properties/*</url-pattern>
122 <http-method>POST</http-method>
123 <http-method>GET</http-method>
124 </web-resource-collection>
125 <auth-constraint>
126 <role-name>MSO-Client</role-name>
127 </auth-constraint>
128 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100129 <security-constraint>
130 <web-resource-collection>
131 <web-resource-name>HTTPBasicAuth</web-resource-name>
132 <description>Authentication for Infra Portal</description>
133 <url-pattern>/*</url-pattern>
134 <http-method>POST</http-method>
135 <http-method>GET</http-method>
136 </web-resource-collection>
137 <auth-constraint>
138 <role-name>InfraPortal-Client</role-name>
139 </auth-constraint>
140 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400141
ChrisC025301d2017-01-31 11:40:03 +0100142 <login-config>
143 <auth-method>BASIC</auth-method>
144 <realm-name>ApplicationRealm</realm-name>
145 </login-config>
146 <security-role>
147 <role-name>InfraPortal-Client</role-name>
148 </security-role>
149 <security-role>
150 <role-name>SiteControl-Client</role-name>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400151 </security-role>
152 <security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700153 <role-name>MSO-Client</role-name>
154 </security-role>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400155
ChrisC025301d2017-01-31 11:40:03 +0100156 <filter>
157 <filter-name>LogFilter</filter-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700158 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +0100159 </filter>
160 <filter-mapping>
161 <filter-name>LogFilter</filter-name>
162 <url-pattern>/*</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400163 </filter-mapping>
164
Rob Daugherty38f72072018-03-14 02:07:32 -0400165</web-app>