blob: 5371354ac977dedd29d3c5b473f11d329e41cc3c [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 Vachuska5f399652015-02-23 15:17:36 -080024 <welcome-file>legacy/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>
70 <url-pattern>/main.html</url-pattern>
71 </servlet-mapping>
72
73 <servlet>
74 <servlet-name>Main Module</servlet-name>
75 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
76 <init-param>
77 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
78 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
79 </init-param>
80 <init-param>
81 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080082 <param-value>org.onosproject.ui.impl.MainModuleResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080083 </init-param>
84 <load-on-startup>1</load-on-startup>
85 </servlet>
86
87 <servlet-mapping>
88 <servlet-name>Main Module</servlet-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -080089 <url-pattern>/onos.js</url-pattern>
90 </servlet-mapping>
91
92 <servlet>
93 <servlet-name>Nav Module</servlet-name>
94 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
95 <init-param>
96 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
97 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
98 </init-param>
99 <init-param>
100 <param-name>com.sun.jersey.config.property.classnames</param-name>
101 <param-value>org.onosproject.ui.impl.MainNavResource</param-value>
102 </init-param>
103 <load-on-startup>1</load-on-startup>
104 </servlet>
105
106 <servlet-mapping>
107 <servlet-name>Nav Module</servlet-name>
108 <url-pattern>/nav.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800109 </servlet-mapping>
110
111 <servlet>
112 <servlet-name>View Module</servlet-name>
113 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
114 <init-param>
115 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
116 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
117 </init-param>
118 <init-param>
119 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuska5f399652015-02-23 15:17:36 -0800120 <param-value>org.onosproject.ui.impl.MainViewResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800121 </init-param>
122 <load-on-startup>1</load-on-startup>
123 </servlet>
124
125 <servlet-mapping>
126 <servlet-name>View Module</servlet-name>
127 <url-pattern>/app/view/*</url-pattern>
128 </servlet-mapping>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800129
tom0eb04ca2014-08-25 14:34:51 -0700130 <servlet>
131 <servlet-name>JAX-RS Service</servlet-name>
132 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
133 <init-param>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800134 <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name>
135 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value>
136 </init-param>
137 <init-param>
138 <param-name>com.sun.jersey.config.property.classnames</param-name>
139 <param-value>
140 org.onosproject.ui.impl.TopologyResource,
141 org.onosproject.ui.impl.DeviceGuiResource
142 </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
163
164 <servlet>
165 <servlet-name>Legacy Web Socket Service</servlet-name>
166 <servlet-class>org.onosproject.ui.impl.GuiWebSocketServlet</servlet-class>
167 <load-on-startup>2</load-on-startup>
168 </servlet>
169
170 <servlet-mapping>
171 <servlet-name>Legacy Web Socket Service</servlet-name>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800172 <url-pattern>/ws/*</url-pattern>
173 </servlet-mapping>
174
Brian O'Connorabafb502014-12-02 22:26:20 -0800175</web-app>