blob: 6b65ba483e6fe1fe2cde069eefead1bf7fad456f [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'Connora09fe5b2017-08-03 21:12:30 -07003 ~ Copyright 2014-present Open Networking Foundation
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>
Andrea Campanellab582df32017-05-05 09:08:11 -070035 <web-resource-collection>
36 <web-resource-name>Secured API</web-resource-name>
37 <url-pattern>/rs/applications/*</url-pattern>
38 </web-resource-collection>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080039 <auth-constraint>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080040 <role-name>admin</role-name>
41 </auth-constraint>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070042 <!--
43 <user-data-constraint>
44 <transport-guarantee>CONFIDENTIAL</transport-guarantee>
45 </user-data-constraint>
46 -->
Thomas Vachuska93da11f2015-02-22 11:09:10 -080047 </security-constraint>
48
Thomas Vachuska93da11f2015-02-22 11:09:10 -080049 <security-role>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080050 <role-name>admin</role-name>
51 </security-role>
Thomas Vachuska93da11f2015-02-22 11:09:10 -080052
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070053 <login-config>
54 <auth-method>FORM</auth-method>
55 <realm-name>karaf</realm-name>
56 <form-login-config>
57 <form-login-page>/login.html</form-login-page>
58 <form-error-page>/error.html</form-error-page>
59 </form-login-config>
60 </login-config>
61
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080062 <servlet>
63 <servlet-name>Index Page</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080064 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080065 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080066 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskaa0509892015-02-21 22:18:41 -080067 <param-value>org.onosproject.ui.impl.MainIndexResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080068 </init-param>
69 <load-on-startup>1</load-on-startup>
70 </servlet>
71
72 <servlet-mapping>
73 <servlet-name>Index Page</servlet-name>
Thomas Vachuska4c2fa062015-03-23 15:07:55 -070074 <url-pattern>/index.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080075 </servlet-mapping>
76
77 <servlet>
78 <servlet-name>Main Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080079 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080080 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080081 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070082 <param-value>org.onosproject.ui.impl.MainModuleResource
83 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080084 </init-param>
85 <load-on-startup>1</load-on-startup>
86 </servlet>
87
88 <servlet-mapping>
89 <servlet-name>Main Module</servlet-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080090 <url-pattern>/onos.js</url-pattern>
91 </servlet-mapping>
92
93 <servlet>
94 <servlet-name>Nav Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -080095 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskae95da772015-02-23 15:50:11 -080096 <init-param>
Jian Li9d616492016-03-09 10:52:49 -080097 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080098 <param-value>org.onosproject.ui.impl.MainNavResource</param-value>
99 </init-param>
100 <load-on-startup>1</load-on-startup>
101 </servlet>
102
103 <servlet-mapping>
104 <servlet-name>Nav Module</servlet-name>
105 <url-pattern>/nav.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800106 </servlet-mapping>
107
108 <servlet>
109 <servlet-name>View Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800110 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800111 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800112 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuska5f399652015-02-23 15:17:36 -0800113 <param-value>org.onosproject.ui.impl.MainViewResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800114 </init-param>
115 <load-on-startup>1</load-on-startup>
116 </servlet>
117
118 <servlet-mapping>
119 <servlet-name>View Module</servlet-name>
120 <url-pattern>/app/view/*</url-pattern>
121 </servlet-mapping>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800122
tom0eb04ca2014-08-25 14:34:51 -0700123 <servlet>
Simon Hunta8346602016-01-30 14:34:42 -0800124 <servlet-name>Foo Module</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800125 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
Simon Hunta8346602016-01-30 14:34:42 -0800126 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800127 <param-name>jersey.config.server.provider.classnames</param-name>
Simon Hunta8346602016-01-30 14:34:42 -0800128 <param-value>org.onosproject.ui.impl.FooResource</param-value>
129 </init-param>
130 <load-on-startup>1</load-on-startup>
131 </servlet>
132
133 <servlet-mapping>
134 <servlet-name>Foo Module</servlet-name>
135 <url-pattern>/raw/*</url-pattern>
136 </servlet-mapping>
137
138 <servlet>
tom0eb04ca2014-08-25 14:34:51 -0700139 <servlet-name>JAX-RS Service</servlet-name>
Jian Li9d616492016-03-09 10:52:49 -0800140 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
tom0eb04ca2014-08-25 14:34:51 -0700141 <init-param>
Jian Li9d616492016-03-09 10:52:49 -0800142 <param-name>jersey.config.server.provider.classnames</param-name>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800143 <param-value>
Jian Li9d616492016-03-09 10:52:49 -0800144 org.glassfish.jersey.media.multipart.MultiPartFeature,
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700145 org.onosproject.ui.impl.LogoutResource,
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800146 org.onosproject.ui.impl.TopologyResource,
Thomas Vachuska530e52a2015-05-06 19:51:32 -0700147 org.onosproject.ui.impl.ApplicationResource
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800148 </param-value>
tom0eb04ca2014-08-25 14:34:51 -0700149 </init-param>
150 <load-on-startup>1</load-on-startup>
151 </servlet>
152
153 <servlet-mapping>
154 <servlet-name>JAX-RS Service</servlet-name>
155 <url-pattern>/rs/*</url-pattern>
156 </servlet-mapping>
157
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800158 <servlet>
159 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700160 <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet
161 </servlet-class>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800162 <load-on-startup>2</load-on-startup>
163 </servlet>
164
165 <servlet-mapping>
166 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuska329af532015-03-10 02:08:33 -0700167 <url-pattern>/websock/*</url-pattern>
168 </servlet-mapping>
169
Brian O'Connorabafb502014-12-02 22:26:20 -0800170</web-app>