blob: 406124b5c6083ea9b584f4f56556183ebbe666dc [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 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>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070060 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
61 </servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080062 <init-param>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070063 <param-name>com.sun.jersey.config.property.resourceConfigClass
64 </param-name>
65 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
66 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080067 </init-param>
68 <init-param>
69 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuskaa0509892015-02-21 22:18:41 -080070 <param-value>org.onosproject.ui.impl.MainIndexResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080071 </init-param>
72 <load-on-startup>1</load-on-startup>
73 </servlet>
74
75 <servlet-mapping>
76 <servlet-name>Index Page</servlet-name>
Thomas Vachuska4c2fa062015-03-23 15:07:55 -070077 <url-pattern>/index.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080078 </servlet-mapping>
79
80 <servlet>
81 <servlet-name>Main Module</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070082 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
83 </servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080084 <init-param>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070085 <param-name>com.sun.jersey.config.property.resourceConfigClass
86 </param-name>
87 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
88 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080089 </init-param>
90 <init-param>
91 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -070092 <param-value>org.onosproject.ui.impl.MainModuleResource
93 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -080094 </init-param>
95 <load-on-startup>1</load-on-startup>
96 </servlet>
97
98 <servlet-mapping>
99 <servlet-name>Main Module</servlet-name>
Thomas Vachuskae95da772015-02-23 15:50:11 -0800100 <url-pattern>/onos.js</url-pattern>
101 </servlet-mapping>
102
103 <servlet>
104 <servlet-name>Nav Module</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700105 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
106 </servlet-class>
Thomas Vachuskae95da772015-02-23 15:50:11 -0800107 <init-param>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700108 <param-name>com.sun.jersey.config.property.resourceConfigClass
109 </param-name>
110 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
111 </param-value>
Thomas Vachuskae95da772015-02-23 15:50:11 -0800112 </init-param>
113 <init-param>
114 <param-name>com.sun.jersey.config.property.classnames</param-name>
115 <param-value>org.onosproject.ui.impl.MainNavResource</param-value>
116 </init-param>
117 <load-on-startup>1</load-on-startup>
118 </servlet>
119
120 <servlet-mapping>
121 <servlet-name>Nav Module</servlet-name>
122 <url-pattern>/nav.html</url-pattern>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800123 </servlet-mapping>
124
125 <servlet>
126 <servlet-name>View Module</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700127 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
128 </servlet-class>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800129 <init-param>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700130 <param-name>com.sun.jersey.config.property.resourceConfigClass
131 </param-name>
132 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
133 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800134 </init-param>
135 <init-param>
136 <param-name>com.sun.jersey.config.property.classnames</param-name>
Thomas Vachuska5f399652015-02-23 15:17:36 -0800137 <param-value>org.onosproject.ui.impl.MainViewResource</param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800138 </init-param>
139 <load-on-startup>1</load-on-startup>
140 </servlet>
141
142 <servlet-mapping>
143 <servlet-name>View Module</servlet-name>
144 <url-pattern>/app/view/*</url-pattern>
145 </servlet-mapping>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800146
tom0eb04ca2014-08-25 14:34:51 -0700147 <servlet>
Simon Hunta8346602016-01-30 14:34:42 -0800148 <servlet-name>Foo Module</servlet-name>
149 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
150 </servlet-class>
151 <init-param>
152 <param-name>com.sun.jersey.config.property.resourceConfigClass
153 </param-name>
154 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
155 </param-value>
156 </init-param>
157 <init-param>
158 <param-name>com.sun.jersey.config.property.classnames</param-name>
159 <param-value>org.onosproject.ui.impl.FooResource</param-value>
160 </init-param>
161 <load-on-startup>1</load-on-startup>
162 </servlet>
163
164 <servlet-mapping>
165 <servlet-name>Foo Module</servlet-name>
166 <url-pattern>/raw/*</url-pattern>
167 </servlet-mapping>
168
169 <servlet>
tom0eb04ca2014-08-25 14:34:51 -0700170 <servlet-name>JAX-RS Service</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700171 <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
172 </servlet-class>
tom0eb04ca2014-08-25 14:34:51 -0700173 <init-param>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700174 <param-name>com.sun.jersey.config.property.resourceConfigClass
175 </param-name>
176 <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig
177 </param-value>
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800178 </init-param>
179 <init-param>
180 <param-name>com.sun.jersey.config.property.classnames</param-name>
181 <param-value>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700182 org.onosproject.ui.impl.LogoutResource,
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800183 org.onosproject.ui.impl.TopologyResource,
Thomas Vachuska530e52a2015-05-06 19:51:32 -0700184 org.onosproject.ui.impl.ApplicationResource
Thomas Vachuskafe8c98a2015-02-04 01:24:32 -0800185 </param-value>
tom0eb04ca2014-08-25 14:34:51 -0700186 </init-param>
187 <load-on-startup>1</load-on-startup>
188 </servlet>
189
190 <servlet-mapping>
191 <servlet-name>JAX-RS Service</servlet-name>
192 <url-pattern>/rs/*</url-pattern>
193 </servlet-mapping>
194
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800195 <servlet>
196 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuskaeff0e4e2015-08-11 00:26:24 -0700197 <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet
198 </servlet-class>
Thomas Vachuska7d638d32014-11-07 10:24:43 -0800199 <load-on-startup>2</load-on-startup>
200 </servlet>
201
202 <servlet-mapping>
203 <servlet-name>Web Socket Service</servlet-name>
Thomas Vachuska329af532015-03-10 02:08:33 -0700204 <url-pattern>/websock/*</url-pattern>
205 </servlet-mapping>
206
Brian O'Connorabafb502014-12-02 22:26:20 -0800207</web-app>