Honeynode test tool
[transportpce.git] / tests / honeynode / minimal-distribution-core / src / main / resources / honeycomb-minimal-resources / config / WEB-INF / web.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3   ~ Copyright (c) 2016 Cisco and/or its affiliates.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at:
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17
18 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
20     version="3.0">
21
22     <servlet>
23         <servlet-name>JAXRSRestconf</servlet-name>
24         <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
25         <init-param>
26             <param-name>javax.ws.rs.Application</param-name>
27             <param-value>org.opendaylight.netconf.sal.rest.impl.RestconfApplication</param-value>
28         </init-param>
29         <load-on-startup>1</load-on-startup>
30     </servlet>
31
32     <servlet-mapping>
33         <servlet-name>JAXRSRestconf</servlet-name>
34         <url-pattern>/*</url-pattern>
35     </servlet-mapping>
36     <filter>
37         <filter-name>cross-origin-restconf</filter-name>
38         <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
39         <init-param>
40             <param-name>allowedOrigins</param-name>
41             <param-value>*</param-value>
42         </init-param>
43         <init-param>
44             <param-name>allowedMethods</param-name>
45             <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
46         </init-param>
47         <init-param>
48             <param-name>allowedHeaders</param-name>
49             <param-value>origin, content-type, accept, authorization</param-value>
50         </init-param>
51         <init-param>
52             <param-name>exposedHeaders</param-name>
53             <param-value>location</param-value>
54         </init-param>
55     </filter>
56     <filter-mapping>
57         <filter-name>cross-origin-restconf</filter-name>
58         <url-pattern>/*</url-pattern>
59     </filter-mapping>
60
61     <security-constraint>
62         <web-resource-collection>
63             <web-resource-name>NB api</web-resource-name>
64             <url-pattern>/*</url-pattern>
65             <http-method>POST</http-method>
66             <http-method>GET</http-method>
67             <http-method>PUT</http-method>
68             <http-method>PATCH</http-method>
69             <http-method>DELETE</http-method>
70             <http-method>HEAD</http-method>
71         </web-resource-collection>
72     </security-constraint>
73
74 </web-app>