Add missing license notice
[neutron.git] / northbound-api / src / main / resources / WEB-INF / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  Copyright (c) 2018 Intel Corporation and others. All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
11         version="3.0">
12   <servlet>
13     <servlet-name>JAXRSNeutron</servlet-name>
14     <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
15     <init-param>
16       <param-name>javax.ws.rs.Application</param-name>
17       <param-value>org.opendaylight.neutron.northbound.api.NeutronNorthboundRSApplication</param-value>
18     </init-param>
19     <load-on-startup>1</load-on-startup>
20   </servlet>
21
22   <servlet-mapping>
23     <servlet-name>JAXRSNeutron</servlet-name>
24     <url-pattern>/*</url-pattern>
25   </servlet-mapping>
26
27   <context-param>
28     <param-name>shiroEnvironmentClass</param-name>
29     <param-value>org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment</param-value>
30   </context-param>
31
32   <listener>
33     <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
34   </listener>
35
36   <filter>
37     <filter-name>ShiroFilter</filter-name>
38     <filter-class>org.opendaylight.aaa.shiro.filters.AAAShiroFilter</filter-class>
39   </filter>
40
41   <filter-mapping>
42     <filter-name>ShiroFilter</filter-name>
43     <url-pattern>/*</url-pattern>
44   </filter-mapping>
45
46   <filter>
47     <filter-name>cross-origin-restconf</filter-name>
48     <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
49     <init-param>
50       <param-name>allowedOrigins</param-name>
51       <param-value>*</param-value>
52     </init-param>
53     <init-param>
54       <param-name>allowedMethods</param-name>
55       <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
56     </init-param>
57     <init-param>
58       <param-name>allowedHeaders</param-name>
59       <param-value>origin, content-type, accept, authorization</param-value>
60     </init-param>
61   </filter>
62   <filter-mapping>
63     <filter-name>cross-origin-restconf</filter-name>
64     <url-pattern>/*</url-pattern>
65   </filter-mapping>
66 </web-app>