Merge "Reorder public/private modifiers as per JLS. (fixes sonar warnings)"
[controller.git] / opendaylight / northbound / subnets / 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>JAXRSSubnets</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.subnets.northbound.SubnetsNorthboundRSApplication</param-value>
11     </init-param>
12     <load-on-startup>1</load-on-startup>
13   </servlet>
14
15   <servlet-mapping>
16     <servlet-name>JAXRSSubnets</servlet-name>
17     <url-pattern>/*</url-pattern>
18   </servlet-mapping>
19         <filter>
20           <filter-name>CorsFilter</filter-name>
21           <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
22           <init-param>
23             <param-name>cors.allowed.origins</param-name>
24             <param-value>*</param-value>
25           </init-param>
26           <init-param>
27             <param-name>cors.allowed.methods</param-name>
28             <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
29           </init-param>
30           <init-param>
31             <param-name>cors.allowed.headers</param-name>
32             <param-value>Content-Type,X-Requested-With,accept,authorization, origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
33           </init-param>
34           <init-param>
35             <param-name>cors.exposed.headers</param-name>
36             <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
37           </init-param>
38           <init-param>
39             <param-name>cors.support.credentials</param-name>
40             <param-value>true</param-value>
41           </init-param>
42           <init-param>
43             <param-name>cors.preflight.maxage</param-name>
44             <param-value>10</param-value>
45           </init-param>
46         </filter>
47         <filter-mapping>
48           <filter-name>CorsFilter</filter-name>
49           <url-pattern>/*</url-pattern>
50         </filter-mapping>
51
52         <security-constraint>
53           <web-resource-collection>
54             <web-resource-name>NB api</web-resource-name>
55             <url-pattern>/*</url-pattern>
56             <http-method>POST</http-method>
57             <http-method>GET</http-method>
58             <http-method>PUT</http-method>
59             <http-method>PATCH</http-method>
60             <http-method>DELETE</http-method>
61             <http-method>HEAD</http-method>
62           </web-resource-collection>
63           <auth-constraint>
64             <role-name>System-Admin</role-name>
65             <role-name>Network-Admin</role-name>
66             <role-name>Network-Operator</role-name>
67             <role-name>Container-User</role-name>
68           </auth-constraint>
69         </security-constraint>
70
71         <security-role>
72                 <role-name>System-Admin</role-name>
73         </security-role>
74         <security-role>
75                 <role-name>Network-Admin</role-name>
76         </security-role>
77         <security-role>
78                 <role-name>Network-Operator</role-name>
79         </security-role>
80         <security-role>
81                 <role-name>Container-User</role-name>
82         </security-role>
83
84         <login-config>
85                 <auth-method>BASIC</auth-method>
86                 <realm-name>opendaylight</realm-name>
87         </login-config>
88 </web-app>