Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 3 | ~ Copyright 2015-present Open Networking Foundation |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 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 Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 25 | <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 Vachuska | 47cd744 | 2018-07-17 11:51:54 -0700 | [diff] [blame^] | 34 | <role-name>viewer</role-name> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 35 | </auth-constraint> |
| 36 | </security-constraint> |
| 37 | |
| 38 | <security-role> |
| 39 | <role-name>admin</role-name> |
Thomas Vachuska | 47cd744 | 2018-07-17 11:51:54 -0700 | [diff] [blame^] | 40 | <role-name>viewer</role-name> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 41 | </security-role> |
| 42 | |
| 43 | <login-config> |
| 44 | <auth-method>BASIC</auth-method> |
| 45 | <realm-name>karaf</realm-name> |
| 46 | </login-config> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 47 | |
| 48 | <servlet> |
| 49 | <servlet-name>JAX-RS Service</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 50 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 51 | <init-param> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 52 | <param-name>javax.ws.rs.Application</param-name> |
| 53 | <param-value>org.onosproject.acl.AclWebApplication</param-value> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 54 | </init-param> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 55 | <load-on-startup>1</load-on-startup> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 56 | </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> |