BUG-8665: fix memory leak around RangeSets
[controller.git] / opendaylight / commons / filter-valve / src / test / resources / no-filter-defined.xml
1 <!--
2   ~ Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3   ~
4   ~ This program and the accompanying materials are made available under the
5   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
6   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
7   -->
8
9 <Host>
10     <!-- Filters are allowed here, only serving as a template -->
11     <filter-template>
12         <filter-name>CorsFilter</filter-name>
13         <filter-class>org.opendaylight.controller.filtervalve.cors.jaxb.MockedFilter</filter-class>
14         <init-param>
15             <param-name>cors.allowed.origins</param-name>
16             <param-value>*</param-value>
17         </init-param>
18         <init-param>
19             <param-name>cors.allowed.methods</param-name>
20             <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>
21         </init-param>
22         <init-param>
23             <param-name>cors.allowed.headers</param-name>
24             <param-value>Content-Type,X-Requested-With,accept,authorization,
25                 origin,Origin,Access-Control-Request-Method,Access-Control-Request-Headers
26             </param-value>
27         </init-param>
28         <init-param>
29             <param-name>cors.exposed.headers</param-name>
30             <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
31         </init-param>
32         <init-param>
33             <param-name>cors.support.credentials</param-name>
34             <param-value>true</param-value>
35         </init-param>
36         <init-param>
37             <param-name>cors.preflight.maxage</param-name>
38             <param-value>10</param-value>
39         </init-param>
40     </filter-template>
41
42     <Context path="/restconf">
43         <!-- Filters are also allowed here. -->
44         <filter>
45             <filter-name>CorsFilter</filter-name>
46             <!-- init params can be added/overriden if template is used -->
47         </filter>
48         <!-- only local references are allowed -->
49         <filter-mapping>
50             <filter-name>CorsFilter</filter-name>
51             <url-pattern>/*</url-pattern>
52         </filter-mapping>
53     </Context>
54
55     <Context path="/controller/nb/v2/connectionmanager">
56         <filter-mapping>
57             <filter-name>CorsFilter</filter-name>
58             <url-pattern>/*</url-pattern>
59         </filter-mapping>
60     </Context>
61 </Host>