blob: fc8db36c1a5512e0ef8fd0da270b0c26ab524110 [file] [log] [blame]
Pengfei Lue0c02e22015-07-07 15:41:31 +08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2015 Open Networking Laboratory
4 ~ Originally created by Pengfei Lu, Network and Cloud Computing Laboratory, Dalian University of Technology, China
5 ~ Advisers: Keqiu Li and Heng Qi
6 ~ This work is supported by the State Key Program of National Natural Science of China(Grant No. 61432002)
7 ~ and Prospective Research Project on Future Networks in Jiangsu Future Networks Innovation Institute.
8 ~
9 ~ Licensed under the Apache License, Version 2.0 (the "License");
10 ~ you may not use this file except in compliance with the License.
11 ~ You may obtain a copy of the License at
12 ~
13 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~
15 ~ Unless required by applicable law or agreed to in writing, software
16 ~ distributed under the License is distributed on an "AS IS" BASIS,
17 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 ~ See the License for the specific language governing permissions and
19 ~ limitations under the License.
20 -->
21<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
22 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
23 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
24 id="ONOS" version="2.5">
Thomas Vachuskaa026be72015-12-07 16:00:37 -080025 <display-name>ACL application REST API</display-name>
26
27 <security-constraint>
28 <web-resource-collection>
29 <web-resource-name>Secured</web-resource-name>
30 <url-pattern>/*</url-pattern>
31 </web-resource-collection>
32 <auth-constraint>
33 <role-name>admin</role-name>
34 </auth-constraint>
35 </security-constraint>
36
37 <security-role>
38 <role-name>admin</role-name>
39 </security-role>
40
41 <login-config>
42 <auth-method>BASIC</auth-method>
43 <realm-name>karaf</realm-name>
44 </login-config>
Pengfei Lue0c02e22015-07-07 15:41:31 +080045
46 <servlet>
47 <servlet-name>JAX-RS Service</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080048 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Pengfei Lue0c02e22015-07-07 15:41:31 +080049 <init-param>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080050 <param-name>javax.ws.rs.Application</param-name>
51 <param-value>org.onosproject.acl.AclWebApplication</param-value>
Pengfei Lue0c02e22015-07-07 15:41:31 +080052 </init-param>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080053 <load-on-startup>1</load-on-startup>
Pengfei Lue0c02e22015-07-07 15:41:31 +080054 </servlet>
55
56 <servlet-mapping>
57 <servlet-name>JAX-RS Service</servlet-name>
58 <url-pattern>/*</url-pattern>
59 </servlet-mapping>
60
61</web-app>