blob: 68b2485a7851bd9f1e64a20a4534b521aafa32bc [file] [log] [blame]
Pengfei Lue0c02e22015-07-07 15:41:31 +08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2015-present Open Networking Foundation
Pengfei Lue0c02e22015-07-07 15:41:31 +08004 ~ 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>
Thomas Vachuska47cd7442018-07-17 11:51:54 -070034 <role-name>viewer</role-name>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080035 </auth-constraint>
36 </security-constraint>
37
38 <security-role>
39 <role-name>admin</role-name>
Thomas Vachuska47cd7442018-07-17 11:51:54 -070040 <role-name>viewer</role-name>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080041 </security-role>
42
43 <login-config>
44 <auth-method>BASIC</auth-method>
45 <realm-name>karaf</realm-name>
46 </login-config>
Pengfei Lue0c02e22015-07-07 15:41:31 +080047
48 <servlet>
49 <servlet-name>JAX-RS Service</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080050 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Pengfei Lue0c02e22015-07-07 15:41:31 +080051 <init-param>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080052 <param-name>javax.ws.rs.Application</param-name>
53 <param-value>org.onosproject.acl.AclWebApplication</param-value>
Pengfei Lue0c02e22015-07-07 15:41:31 +080054 </init-param>
Thomas Vachuskaa026be72015-12-07 16:00:37 -080055 <load-on-startup>1</load-on-startup>
Pengfei Lue0c02e22015-07-07 15:41:31 +080056 </servlet>
57
58 <servlet-mapping>
59 <servlet-name>JAX-RS Service</servlet-name>
60 <url-pattern>/*</url-pattern>
61 </servlet-mapping>
62
63</web-app>