blob: f83fbadd974cf92717df7b6cfcff9053a9890046 [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<!--
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07003 ~ Copyright 2014 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 Vachuskafe8c98a2015-02-04 01:24:32 -080017<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
18 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
tom0eb04ca2014-08-25 14:34:51 -070019 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
20 id="ONOS" version="2.5">
21 <display-name>ONOS GUI</display-name>
22
23 <welcome-file-list>
Thomas Vachuska4c2fa062015-03-23 15:07:55 -070024 <welcome-file>index.html</welcome-file>
tom0eb04ca2014-08-25 14:34:51 -070025 </welcome-file-list>
26
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080027 <!--
Thomas Vachuska93da11f2015-02-22 11:09:10 -080028 <security-constraint>
29 <display-name>authenticated</display-name>
30 <web-resource-collection>
31 <web-resource-name>All files</web-resource-name>
32 <description/>
33 <url-pattern>/*</url-pattern>
34 </web-resource-collection>
35 <auth-constraint>
36 <description/>
37 <role-name>admin</role-name>
38 </auth-constraint>
39 </security-constraint>
40
41 <login-config>
42 <auth-method>BASIC</auth-method>
43 <realm-name>karaf</realm-name>
44 </login-config>
45
46 <security-role>
47 <description/>
48 <role-name>admin</role-name>
49 </security-role>
50 -->
51
52 <!--
Thomas Vachuska9730ec92015-03-07 17:25:21 -080053 -->
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080054 <servlet>
55 <servlet-name>Index Page</servlet-name>
56 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
57 <init-param>
58 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
59 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
60 </init-param>
61 <init-param>
62 <param-name>com.sun.jersey.config.property.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 <url-pattern>/main.html</url-pattern>
72 </servlet-mapping>
73
74 <servlet>
75 <servlet-name>Main Module</servlet-name>
76 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
77 <init-param>
78 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
79 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
80 </init-param>
81 <init-param>
82 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080083 <param-value>org.onosproject.ui.impl.MainModuleResource</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>
95 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
96 <init-param>
97 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
98 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
99 </init-param>
100 <init-param>
101 <param-name>com.sun.jersey.config.property.classnames</param-name>
102 <param-value>org.onosproject.ui.impl.MainNavResource</param-value>
103 </init-param>
104 <load-on-startup>1</load-on-startup>
105 </servlet>
106
107 <servlet-mapping>
108 <servlet-name>Nav Module</servlet-name>
109 <url-pattern>/nav.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800110 </servlet-mapping>
111
112 <servlet>
113 <servlet-name>View Module</servlet-name>
114 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
115 <init-param>
116 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
117 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
118 </init-param>
119 <init-param>
120 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuska5f399652015-02-23 15:17:36 -0800121 <param-value>org.onosproject.ui.impl.MainViewResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800122 </init-param>
123 <load-on-startup>1</load-on-startup>
124 </servlet>
125
126 <servlet-mapping>
127 <servlet-name>View Module</servlet-name>
128 <url-pattern>/app/view/*</url-pattern>
129 </servlet-mapping>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800130
tom0eb04ca2014-08-25 14:34:51 -0700131 <servlet>
132 <servlet-name>JAX-RS Service</servlet-name>
133 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
134 <init-param>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800135 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
136 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
137 </init-param>
138 <init-param>
139 <param-name>com.sun.jersey.config.property.classnames</param-name>
140 <param-value>
141 org.onosproject.ui.impl.TopologyResource,
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800142 </param-value>
tom0eb04ca2014-08-25 14:34:51 -0700143 </init-param>
144 <load-on-startup>1</load-on-startup>
145 </servlet>
146
147 <servlet-mapping>
148 <servlet-name>JAX-RS Service</servlet-name>
149 <url-pattern>/rs/*</url-pattern>
150 </servlet-mapping>
151
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800152 <servlet>
153 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuska329af532015-03-10 02:08:33 -0700154 <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet</servlet-class>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800155 <load-on-startup>2</load-on-startup>
156 </servlet>
157
158 <servlet-mapping>
159 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuska329af532015-03-10 02:08:33 -0700160 <url-pattern>/websock/*</url-pattern>
161 </servlet-mapping>
162
Thomas Vachuska329af532015-03-10 02:08:33 -0700163 <servlet>
164 <servlet-name>Legacy Web Socket Service</servlet-name>
165 <servlet-class>org.onosproject.ui.impl.GuiWebSocketServlet</servlet-class>
166 <load-on-startup>2</load-on-startup>
167 </servlet>
168
169 <servlet-mapping>
170 <servlet-name>Legacy Web Socket Service</servlet-name>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800171 <url-pattern>/ws/*</url-pattern>
172 </servlet-mapping>
173
Brian O'Connorabafb502014-12-02 22:26:20 -0800174</web-app>