blob: fa80b9ee4e568226a559fa284cae0639d7096d22 [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>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -07005
6
ChrisC025301d2017-01-31 11:40:03 +01007 <context-param>
8 <param-name>resteasy.jndi.resources</param-name>
9 <param-value>java:module/MsoPropertiesFactory</param-value>
10 </context-param>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070011
ChrisC025301d2017-01-31 11:40:03 +010012 <!-- 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
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070018 <!-- 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>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070048
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.apihandler-infra.xml</param-value>
58 </context-param>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070059
ChrisC025301d2017-01-31 11:40:03 +010060 <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>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070064
ChrisC025301d2017-01-31 11:40:03 +010065 <context-param>
66 <param-name>resteasy.resources</param-name>
67 <param-value>org.openecomp.mso.logger.MsoLoggingServlet</param-value>
68 </context-param>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070069
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>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>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700108 <security-constraint>
109 <web-resource-collection>
110 <web-resource-name>MSO internal Requests</web-resource-name>
111 <description>Internal Requests</description>
112 <url-pattern>/logging/*</url-pattern>
113 <url-pattern>/properties/*</url-pattern>
114 <http-method>POST</http-method>
115 <http-method>GET</http-method>
116 </web-resource-collection>
117 <auth-constraint>
118 <role-name>MSO-Client</role-name>
119 </auth-constraint>
120 </security-constraint>
ChrisC025301d2017-01-31 11:40:03 +0100121 <security-constraint>
122 <web-resource-collection>
123 <web-resource-name>HTTPBasicAuth</web-resource-name>
124 <description>Authentication for Infra Portal</description>
125 <url-pattern>/*</url-pattern>
126 <http-method>POST</http-method>
127 <http-method>GET</http-method>
128 </web-resource-collection>
129 <auth-constraint>
130 <role-name>InfraPortal-Client</role-name>
131 </auth-constraint>
132 </security-constraint>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700133
ChrisC025301d2017-01-31 11:40:03 +0100134 <login-config>
135 <auth-method>BASIC</auth-method>
136 <realm-name>ApplicationRealm</realm-name>
137 </login-config>
138 <security-role>
139 <role-name>InfraPortal-Client</role-name>
140 </security-role>
141 <security-role>
142 <role-name>SiteControl-Client</role-name>
143 </security-role>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700144 <security-role>
145 <role-name>MSO-Client</role-name>
146 </security-role>
ChrisC025301d2017-01-31 11:40:03 +0100147
148 <filter>
149 <filter-name>LogFilter</filter-name>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700150 <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
ChrisC025301d2017-01-31 11:40:03 +0100151 </filter>
152 <filter-mapping>
153 <filter-name>LogFilter</filter-name>
154 <url-pattern>/*</url-pattern>
155 </filter-mapping>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700156
ChrisC025301d2017-01-31 11:40:03 +0100157</web-app>