blob: 10a18d2a87ce924c15146d43b2f8e984fe2ded5f [file] [log] [blame]
tom0eb04ca2014-08-25 14:34:51 -07001<?xml version="1.0" encoding="UTF-8"?>
Thomas Vachuska781d18b2014-10-27 10:31:25 -07002<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07003 ~ Copyright 2014-present Open Networking Laboratory
Thomas Vachuska781d18b2014-10-27 10:31:25 -07004 ~
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07005 ~ 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
Thomas Vachuska781d18b2014-10-27 10:31:25 -07008 ~
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07009 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
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.
Thomas Vachuska781d18b2014-10-27 10:31:25 -070016 -->
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070017<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xmlns="http://java.sun.com/xml/ns/javaee"
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080019 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
tom0eb04ca2014-08-25 14:34:51 -070020 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
21 id="ONOS" version="2.5">
22 <display-name>ONOS GUI</display-name>
23
24 <welcome-file-list>
Thomas Vachuska4c2fa062015-03-23 15:07:55 -070025 <welcome-file>index.html</welcome-file>
tom0eb04ca2014-08-25 14:34:51 -070026 </welcome-file-list>
27
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080028 <!--
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070029 -->
Thomas Vachuska93da11f2015-02-22 11:09:10 -080030 <security-constraint>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080031 <web-resource-collection>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070032 <web-resource-name>Secured</web-resource-name>
33 <url-pattern>/index.html</url-pattern>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080034 </web-resource-collection>
35 <auth-constraint>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080036 <role-name>admin</role-name>
37 </auth-constraint>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070038 <!--
39 <user-data-constraint>
40 <transport-guarantee>CONFIDENTIAL</transport-guarantee>
41 </user-data-constraint>
42 -->
Thomas Vachuska93da11f2015-02-22 11:09:10 -080043 </security-constraint>
44
Thomas Vachuska93da11f2015-02-22 11:09:10 -080045 <security-role>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080046 <role-name>admin</role-name>
47 </security-role>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080048
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070049 <login-config>
50 <auth-method>FORM</auth-method>
51 <realm-name>karaf</realm-name>
52 <form-login-config>
53 <form-login-page>/login.html</form-login-page>
54 <form-error-page>/error.html</form-error-page>
55 </form-login-config>
56 </login-config>
57
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080058 <servlet>
59 <servlet-name>Index Page</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080060 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080061 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080062 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskaa0509892015-02-21 22:18:41 -080063 <param-value>org.onosproject.ui.impl.MainIndexResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080064 </init-param>
65 <load-on-startup>1</load-on-startup>
66 </servlet>
67
68 <servlet-mapping>
69 <servlet-name>Index Page</servlet-name>
Thomas Vachuska4c2fa062015-03-23 15:07:55 -070070 <url-pattern>/index.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080071 </servlet-mapping>
72
73 <servlet>
74 <servlet-name>Main Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080075 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080076 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080077 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070078 <param-value>org.onosproject.ui.impl.MainModuleResource
79 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080080 </init-param>
81 <load-on-startup>1</load-on-startup>
82 </servlet>
83
84 <servlet-mapping>
85 <servlet-name>Main Module</servlet-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080086 <url-pattern>/onos.js</url-pattern>
87 </servlet-mapping>
88
89 <servlet>
90 <servlet-name>Nav Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080091 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskae95da772015-02-23 15:50:11 -080092 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080093 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080094 <param-value>org.onosproject.ui.impl.MainNavResource</param-value>
95 </init-param>
96 <load-on-startup>1</load-on-startup>
97 </servlet>
98
99 <servlet-mapping>
100 <servlet-name>Nav Module</servlet-name>
101 <url-pattern>/nav.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800102 </servlet-mapping>
103
104 <servlet>
105 <servlet-name>View Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800106 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800107 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800108 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuska5f399652015-02-23 15:17:36 -0800109 <param-value>org.onosproject.ui.impl.MainViewResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800110 </init-param>
111 <load-on-startup>1</load-on-startup>
112 </servlet>
113
114 <servlet-mapping>
115 <servlet-name>View Module</servlet-name>
116 <url-pattern>/app/view/*</url-pattern>
117 </servlet-mapping>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800118
tom0eb04ca2014-08-25 14:34:51 -0700119 <servlet>
Simon Hunta8346602016-01-30 14:34:42 -0800120 <servlet-name>Foo Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800121 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Simon Hunta8346602016-01-30 14:34:42 -0800122 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800123 <param-name>jersey.config.server.provider.classnames</param-name>
Simon Hunta8346602016-01-30 14:34:42 -0800124 <param-value>org.onosproject.ui.impl.FooResource</param-value>
125 </init-param>
126 <load-on-startup>1</load-on-startup>
127 </servlet>
128
129 <servlet-mapping>
130 <servlet-name>Foo Module</servlet-name>
131 <url-pattern>/raw/*</url-pattern>
132 </servlet-mapping>
133
134 <servlet>
tom0eb04ca2014-08-25 14:34:51 -0700135 <servlet-name>JAX-RS Service</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800136 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
tom0eb04ca2014-08-25 14:34:51 -0700137 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800138 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800139 <param-value>
Jian Li9d616492016-03-09 10:52:49 -0800140 org.glassfish.jersey.media.multipart.MultiPartFeature,
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700141 org.onosproject.ui.impl.LogoutResource,
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800142 org.onosproject.ui.impl.TopologyResource,
Thomas Vachuska530e52a2015-05-06 19:51:32 -0700143 org.onosproject.ui.impl.ApplicationResource
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800144 </param-value>
tom0eb04ca2014-08-25 14:34:51 -0700145 </init-param>
146 <load-on-startup>1</load-on-startup>
147 </servlet>
148
149 <servlet-mapping>
150 <servlet-name>JAX-RS Service</servlet-name>
151 <url-pattern>/rs/*</url-pattern>
152 </servlet-mapping>
153
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800154 <servlet>
155 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700156 <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet
157 </servlet-class>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800158 <load-on-startup>2</load-on-startup>
159 </servlet>
160
161 <servlet-mapping>
162 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuska329af532015-03-10 02:08:33 -0700163 <url-pattern>/websock/*</url-pattern>
164 </servlet-mapping>
165
Brian O'Connorabafb502014-12-02 22:26:20 -0800166</web-app>