Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 1 | <?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 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> |
| 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 Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 45 | |
| 46 | <servlet> |
| 47 | <servlet-name>JAX-RS Service</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 48 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 49 | <init-param> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 50 | <param-name>javax.ws.rs.Application</param-name> |
| 51 | <param-value>org.onosproject.acl.AclWebApplication</param-value> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 52 | </init-param> |
Thomas Vachuska | a026be7 | 2015-12-07 16:00:37 -0800 | [diff] [blame] | 53 | <load-on-startup>1</load-on-startup> |
Pengfei Lu | e0c02e2 | 2015-07-07 15:41:31 +0800 | [diff] [blame] | 54 | </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> |