UI support for multiple host per port
[controller.git] / opendaylight / northbound / statistics / src / main / resources / WEB-INF / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4         version="3.0">
5   <servlet>
6     <servlet-name>JAXRSStatistics</servlet-name>
7     <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
8     <init-param>
9       <param-name>javax.ws.rs.Application</param-name>
10       <param-value>org.opendaylight.controller.statistics.northbound.StatisticsNorthboundRSApplication</param-value>
11     </init-param>
12     <load-on-startup>1</load-on-startup>
13   </servlet>
14
15   <servlet-mapping>
16     <servlet-name>JAXRSStatistics</servlet-name>
17     <url-pattern>/*</url-pattern>
18   </servlet-mapping>
19
20         <filter>
21           <filter-name>CorsFilter</filter-name>
22           <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
23           <init-param>
24             <param-name>cors.allowed.origins</param-name>
25             <param-value>*</param-value>
26           </init-param>
27           <init-param>
28             <param-name>cors.allowed.methods</param-name>
29             <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
30           </init-param>
31           <init-param>
32             <param-name>cors.allowed.headers</param-name>
33             <param-value>Content-Type,X-Requested-With,accept,authorization, origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
34           </init-param>
35           <init-param>
36             <param-name>cors.exposed.headers</param-name>
37             <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
38           </init-param>
39           <init-param>
40             <param-name>cors.support.credentials</param-name>
41             <param-value>true</param-value>
42           </init-param>
43           <init-param>
44             <param-name>cors.preflight.maxage</param-name>
45             <param-value>10</param-value>
46           </init-param>
47         </filter>
48         <filter-mapping>
49           <filter-name>CorsFilter</filter-name>
50           <url-pattern>/*</url-pattern>
51         </filter-mapping>
52
53         <security-constraint>
54           <web-resource-collection>
55             <web-resource-name>NB api</web-resource-name>
56             <url-pattern>/*</url-pattern>
57             <http-method>POST</http-method>
58             <http-method>GET</http-method>
59             <http-method>PUT</http-method>
60             <http-method>PATCH</http-method>
61             <http-method>DELETE</http-method>
62             <http-method>HEAD</http-method>
63           </web-resource-collection>
64           <auth-constraint>
65             <role-name>System-Admin</role-name>
66             <role-name>Network-Admin</role-name>
67             <role-name>Network-Operator</role-name>
68             <role-name>Container-User</role-name>
69           </auth-constraint>
70         </security-constraint>
71
72         <security-role>
73                 <role-name>System-Admin</role-name>
74         </security-role>
75         <security-role>
76                 <role-name>Network-Admin</role-name>
77         </security-role>
78         <security-role>
79                 <role-name>Network-Operator</role-name>
80         </security-role>
81         <security-role>
82                 <role-name>Container-User</role-name>
83         </security-role>
84
85         <login-config>
86                 <auth-method>BASIC</auth-method>
87                 <realm-name>opendaylight</realm-name>
88         </login-config>
89 </web-app>