blob: cd4a560ad1838f7b62dcf41a91d2f8266ac4ca46 [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>
88 </servlet-mapping>
89
90 <!-- To be replaced by AAF in the future, when Camunda scripts replacing the BPEL scripts completely -->
ChrisC025301d2017-01-31 11:40:03 +010091 <security-constraint>
92 <web-resource-collection>
93 <web-resource-name>HealthcheckNoAuth</web-resource-name>
94 <description>No Authentication for Healthcheck</description>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040095 <url-pattern>/healthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +010096 <url-pattern>/globalhealthcheck</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -040097 <url-pattern>/nodehealthcheck</url-pattern>
ChrisC025301d2017-01-31 11:40:03 +010098 <http-method>GET</http-method>
99 <http-method>POST</http-method>
100 </web-resource-collection>
101 </security-constraint>
102 <security-constraint>
103 <web-resource-collection>
104 <web-resource-name>SiteStatus</web-resource-name>
105 <description>SiteStatus APIs</description>
106 <url-pattern>/setStatus/*</url-pattern>
107 <http-method>POST</http-method>
108 </web-resource-collection>
109 <auth-constraint>
110 <role-name>SiteControl-Client</role-name>
111 </auth-constraint>
112 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400113 <security-constraint>
114 <web-resource-collection>
115 <web-resource-name>MSO internal Requests</web-resource-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700116 <description>Internal Requests</description>
117 <url-pattern>/logging/*</url-pattern>
118 <url-pattern>/properties/*</url-pattern>
119 <http-method>POST</http-method>
120 <http-method>GET</http-method>
121 </web-resource-collection>
122 <auth-constraint>
123 <role-name>MSO-Client</role-name>
124 </auth-constraint>
125 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100126 <security-constraint>
127 <web-resource-collection>
128 <web-resource-name>HTTPBasicAuth</web-resource-name>
129 <description>Authentication for Infra Portal</description>
130 <url-pattern>/*</url-pattern>
131 <http-method>POST</http-method>
132 <http-method>GET</http-method>
133 </web-resource-collection>
134 <auth-constraint>
135 <role-name>InfraPortal-Client</role-name>
136 </auth-constraint>
137 </security-constraint>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400138
ChrisC025301d2017-01-31 11:40:03 +0100139 <login-config>
140 <auth-method>BASIC</auth-method>
141 <realm-name>ApplicationRealm</realm-name>
142 </login-config>
143 <security-role>
144 <role-name>InfraPortal-Client</role-name>
145 </security-role>
146 <security-role>
147 <role-name>SiteControl-Client</role-name>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400148 </security-role>
149 <security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700150 <role-name>MSO-Client</role-name>
151 </security-role>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400152
ChrisC025301d2017-01-31 11:40:03 +0100153 <filter>
154 <filter-name>LogFilter</filter-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700155 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +0100156 </filter>
157 <filter-mapping>
158 <filter-name>LogFilter</filter-name>
159 <url-pattern>/*</url-pattern>
Arthur Martella62cd6aa2017-09-08 13:27:46 -0400160 </filter-mapping>
161
ChrisC025301d2017-01-31 11:40:03 +0100162</web-app>