1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 Copyright (c) 2018 Intel Corporation and others. All rights reserved.
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
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"
13 <servlet-name>JAXRSNeutron</servlet-name>
14 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
16 <param-name>javax.ws.rs.Application</param-name>
17 <param-value>org.opendaylight.neutron.northbound.api.NeutronNorthboundRSApplication</param-value>
19 <load-on-startup>1</load-on-startup>
23 <servlet-name>JAXRSNeutron</servlet-name>
24 <url-pattern>/*</url-pattern>
28 <param-name>shiroEnvironmentClass</param-name>
29 <param-value>org.opendaylight.aaa.shiro.web.env.KarafIniWebEnvironment</param-value>
33 <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
37 <filter-name>ShiroFilter</filter-name>
38 <filter-class>org.opendaylight.aaa.shiro.filters.AAAShiroFilter</filter-class>
42 <filter-name>ShiroFilter</filter-name>
43 <url-pattern>/*</url-pattern>
47 <filter-name>cross-origin-restconf</filter-name>
48 <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
50 <param-name>allowedOrigins</param-name>
51 <param-value>*</param-value>
54 <param-name>allowedMethods</param-name>
55 <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
58 <param-name>allowedHeaders</param-name>
59 <param-value>origin, content-type, accept, authorization</param-value>
63 <filter-name>cross-origin-restconf</filter-name>
64 <url-pattern>/*</url-pattern>