blob: e34740d6136026881fff007b1556c4f85fcf82d5 [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>
5
6
7 <context-param>
8 <param-name>resteasy.jndi.resources</param-name>
9 <param-value>java:module/MsoPropertiesFactory</param-value>
10 </context-param>
11
12 <!-- enable the Asynchronous Job Service -->
13 <context-param>
14 <param-name>resteasy.async.job.service.enabled</param-name>
15 <param-value>true</param-value>
16 </context-param>
17
18 <!-- The next context parameters are all optional.
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>
48
49 <!--
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.apihandler-infra.xml</param-value>
58 </context-param>
59
60 <context-param>
61 <param-name>mso.configuration</param-name>
62 <param-value>MSO_PROP_APIHANDLER_INFRA=mso.apihandler-infra.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
63 </context-param>
64
65 <context-param>
66 <param-name>resteasy.resources</param-name>
67 <param-value>org.openecomp.mso.logger.MsoLoggingServlet</param-value>
68 </context-param>
69
70 <listener>
71 <listener-class>
72 org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
73 </listener-class>
74 </listener>
75 <servlet>
76 <servlet-name>msoapihandler-infra-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>msoapihandler-infra-servlet</servlet-name>
83 <url-pattern>/*</url-pattern>
84 </servlet-mapping>
85
86 <security-constraint>
87 <web-resource-collection>
88 <web-resource-name>HealthcheckNoAuth</web-resource-name>
89 <description>No Authentication for Healthcheck</description>
90 <url-pattern>/healthcheck</url-pattern>
91 <url-pattern>/nodehealthcheck</url-pattern>
92 <url-pattern>/globalhealthcheck</url-pattern>
93 <http-method>GET</http-method>
94 <http-method>POST</http-method>
95 </web-resource-collection>
96 </security-constraint>
97 <security-constraint>
98 <web-resource-collection>
99 <web-resource-name>SiteStatus</web-resource-name>
100 <description>SiteStatus APIs</description>
101 <url-pattern>/setStatus/*</url-pattern>
102 <http-method>POST</http-method>
103 </web-resource-collection>
104 <auth-constraint>
105 <role-name>SiteControl-Client</role-name>
106 </auth-constraint>
107 </security-constraint>
108 <security-constraint>
109 <web-resource-collection>
110 <web-resource-name>HTTPBasicAuth</web-resource-name>
111 <description>Authentication for Infra Portal</description>
112 <url-pattern>/*</url-pattern>
113 <http-method>POST</http-method>
114 <http-method>GET</http-method>
115 </web-resource-collection>
116 <auth-constraint>
117 <role-name>InfraPortal-Client</role-name>
118 </auth-constraint>
119 </security-constraint>
120
121 <login-config>
122 <auth-method>BASIC</auth-method>
123 <realm-name>ApplicationRealm</realm-name>
124 </login-config>
125 <security-role>
126 <role-name>InfraPortal-Client</role-name>
127 </security-role>
128 <security-role>
129 <role-name>SiteControl-Client</role-name>
130 </security-role>
131
132 <filter>
133 <filter-name>LogFilter</filter-name>
134 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
135 </filter>
136 <filter-mapping>
137 <filter-name>LogFilter</filter-name>
138 <url-pattern>/*</url-pattern>
139 </filter-mapping>
140
141</web-app>