fix ServiceHandler SpotBugs false positives
[transportpce.git] / tests / honeynode / 2.2.1 / 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     <filter>
23         <filter-name>cross-origin-restconf</filter-name>
24         <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
25         <init-param>
26             <param-name>allowedOrigins</param-name>
27             <param-value>*</param-value>
28         </init-param>
29         <init-param>
30             <param-name>allowedMethods</param-name>
31             <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
32         </init-param>
33         <init-param>
34             <param-name>allowedHeaders</param-name>
35             <param-value>origin, content-type, accept, authorization</param-value>
36         </init-param>
37         <init-param>
38             <param-name>exposedHeaders</param-name>
39             <param-value>location</param-value>
40         </init-param>
41     </filter>
42     <filter-mapping>
43         <filter-name>cross-origin-restconf</filter-name>
44         <url-pattern>/*</url-pattern>
45     </filter-mapping>
46
47     <security-constraint>
48         <web-resource-collection>
49             <web-resource-name>NB api</web-resource-name>
50             <url-pattern>/*</url-pattern>
51             <http-method>POST</http-method>
52             <http-method>GET</http-method>
53             <http-method>PUT</http-method>
54             <http-method>PATCH</http-method>
55             <http-method>DELETE</http-method>
56             <http-method>HEAD</http-method>
57         </web-resource-collection>
58     </security-constraint>
59
60 </web-app>