c1faf34b3810d52851cd67d54a89022c01c19f22
[controller.git] / opendaylight / commons / filter-valve / src / test / resources / conflicting-class.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     <filter-template>
11         <filter-name>CorsFilter</filter-name>
12         <filter-class>org.opendaylight.controller.filtervalve.cors.jaxb.MockedFilter</filter-class>
13         <init-param>
14             <param-name>cors.preflight.maxage</param-name>
15             <param-value>10</param-value>
16         </init-param>
17         <init-param>
18             <param-name>cors.allowed.origins</param-name>
19             <param-value>*</param-value>
20         </init-param>
21     </filter-template>
22
23     <Context path="/restconf">
24         <filter>
25             <filter-name>CorsFilter</filter-name>
26             <!-- conflict -->
27             <filter-class>org.opendaylight.controller.filtervalve.cors.jaxb.DummyFilter</filter-class>
28         </filter>
29         <filter-mapping>
30             <filter-name>CorsFilter</filter-name>
31             <url-pattern>/*</url-pattern>
32         </filter-mapping>
33     </Context>
34 </Host>