blob: b8ce1a632181ce49f1385403c6e0ba507887b31d [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>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040089 </servlet-mapping>
90
91 <!-- To be replaced by AAF in the future, when Camunda scripts replacing the BPEL scripts completely -->
ChrisC025301d2017-01-31 11:40:03 +010092 <security-constraint>
93 <web-resource-collection>
94 <web-resource-name>HealthcheckNoAuth</web-resource-name>
95 <description>No Authentication for Healthcheck</description>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040096 <url-pattern>/healthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +010097 <url-pattern>/globalhealthcheck</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040098 <url-pattern>/nodehealthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +010099 <http-method>GET</http-method>
100 <http-method>POST</http-method>
101 </web-resource-collection>
102 </security-constraint>
103 <security-constraint>
104 <web-resource-collection>
105 <web-resource-name>SiteStatus</web-resource-name>
106 <description>SiteStatus APIs</description>
107 <url-pattern>/setStatus/*</url-pattern>
108 <http-method>POST</http-method>
109 </web-resource-collection>
110 <auth-constraint>
111 <role-name>SiteControl-Client</role-name>
112 </auth-constraint>
113 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400114 <security-constraint>
115 <web-resource-collection>
116 <web-resource-name>MSO internal Requests</web-resource-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700117 <description>Internal Requests</description>
118 <url-pattern>/logging/*</url-pattern>
119 <url-pattern>/properties/*</url-pattern>
120 <http-method>POST</http-method>
121 <http-method>GET</http-method>
122 </web-resource-collection>
123 <auth-constraint>
124 <role-name>MSO-Client</role-name>
125 </auth-constraint>
126 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100127 <security-constraint>
128 <web-resource-collection>
129 <web-resource-name>HTTPBasicAuth</web-resource-name>
130 <description>Authentication for Infra Portal</description>
131 <url-pattern>/*</url-pattern>
132 <http-method>POST</http-method>
133 <http-method>GET</http-method>
134 </web-resource-collection>
135 <auth-constraint>
136 <role-name>InfraPortal-Client</role-name>
137 </auth-constraint>
138 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400139
ChrisC025301d2017-01-31 11:40:03 +0100140 <login-config>
141 <auth-method>BASIC</auth-method>
142 <realm-name>ApplicationRealm</realm-name>
143 </login-config>
144 <security-role>
145 <role-name>InfraPortal-Client</role-name>
146 </security-role>
147 <security-role>
148 <role-name>SiteControl-Client</role-name>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400149 </security-role>
150 <security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700151 <role-name>MSO-Client</role-name>
152 </security-role>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400153
ChrisC025301d2017-01-31 11:40:03 +0100154 <filter>
155 <filter-name>LogFilter</filter-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700156 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +0100157 </filter>
158 <filter-mapping>
159 <filter-name>LogFilter</filter-name>
160 <url-pattern>/*</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400161 </filter-mapping>
162
ChrisC025301d2017-01-31 11:40:03 +0100163</web-app>