1 <?xml version="1.0" encoding="ISO-8859-1"?>
3 ~ Copyright (c) 2016 Cisco and/or its affiliates.
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:
9 ~ http://www.apache.org/licenses/LICENSE-2.0
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.
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"
23 <servlet-name>JAXRSRestconf</servlet-name>
24 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
26 <param-name>javax.ws.rs.Application</param-name>
27 <param-value>org.opendaylight.netconf.sal.rest.impl.RestconfApplication</param-value>
29 <load-on-startup>1</load-on-startup>
33 <servlet-name>JAXRSRestconf</servlet-name>
34 <url-pattern>/*</url-pattern>
37 <filter-name>cross-origin-restconf</filter-name>
38 <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
40 <param-name>allowedOrigins</param-name>
41 <param-value>*</param-value>
44 <param-name>allowedMethods</param-name>
45 <param-value>GET,POST,OPTIONS,DELETE,PUT,HEAD</param-value>
48 <param-name>allowedHeaders</param-name>
49 <param-value>origin, content-type, accept, authorization</param-value>
52 <param-name>exposedHeaders</param-name>
53 <param-value>location</param-value>
57 <filter-name>cross-origin-restconf</filter-name>
58 <url-pattern>/*</url-pattern>
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>