blob: 5ac6e2fcd849f30639962fce7366a41427043b93 [file] [log] [blame]
Sean Condon83fc39f2018-04-19 18:56:13 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2014-present Open Networking Foundation
4 ~
5 ~ 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
8 ~
9 ~ 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.
16 -->
17<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18 xmlns="http://java.sun.com/xml/ns/javaee"
19 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
20 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 2</display-name>
23
24 <welcome-file-list>
Sean Condonf6af2a52018-08-19 10:43:24 +010025 <welcome-file>index.html</welcome-file>
Sean Condon83fc39f2018-04-19 18:56:13 +010026 </welcome-file-list>
27
28 <!--
29 -->
30 <security-constraint>
31 <web-resource-collection>
32 <web-resource-name>Secured</web-resource-name>
Sean Condonf6af2a52018-08-19 10:43:24 +010033 <url-pattern>/index.html</url-pattern>
Sean Condon83fc39f2018-04-19 18:56:13 +010034 </web-resource-collection>
35 <web-resource-collection>
36 <web-resource-name>Secured API</web-resource-name>
37 <url-pattern>/rs/applications/*</url-pattern>
38 </web-resource-collection>
Sean Condon87b78502018-09-17 20:53:24 +010039 <web-resource-collection>
40 <web-resource-name>Secured Nav</web-resource-name>
41 <url-pattern>/rs/nav/*</url-pattern>
42 </web-resource-collection>
Sean Condon83fc39f2018-04-19 18:56:13 +010043 <auth-constraint>
44 <role-name>admin</role-name>
45 </auth-constraint>
46 <!--
47 <user-data-constraint>
48 <transport-guarantee>CONFIDENTIAL</transport-guarantee>
49 </user-data-constraint>
50 -->
51 </security-constraint>
52
53 <security-role>
54 <role-name>admin</role-name>
55 </security-role>
56
57 <login-config>
58 <auth-method>FORM</auth-method>
59 <realm-name>karaf</realm-name>
60 <form-login-config>
61 <form-login-page>/login.html</form-login-page>
62 <form-error-page>/error.html</form-error-page>
63 </form-login-config>
64 </login-config>
65
66 <servlet>
67 <servlet-name>Index Page</servlet-name>
68 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
69 <init-param>
70 <param-name>jersey.config.server.provider.classnames</param-name>
71 <param-value>org.onosproject.ui.impl.MainIndexResource</param-value>
72 </init-param>
73 <load-on-startup>1</load-on-startup>
74 </servlet>
75
76 <servlet-mapping>
77 <servlet-name>Index Page</servlet-name>
Sean Condonf6af2a52018-08-19 10:43:24 +010078 <url-pattern>/index.html</url-pattern>
Sean Condon83fc39f2018-04-19 18:56:13 +010079 </servlet-mapping>
80
Sean Condonffd4bf82018-05-22 23:33:09 +010081 <!--<servlet>-->
82 <!--<servlet-name>Main Module</servlet-name>-->
83 <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>-->
84 <!--<init-param>-->
85 <!--<param-name>jersey.config.server.provider.classnames</param-name>-->
86 <!--<param-value>org.onosproject.ui.impl.MainModuleResource-->
87 <!--</param-value>-->
88 <!--</init-param>-->
89 <!--<load-on-startup>1</load-on-startup>-->
90 <!--</servlet>-->
Sean Condon83fc39f2018-04-19 18:56:13 +010091
Sean Condonffd4bf82018-05-22 23:33:09 +010092 <!--<servlet-mapping>-->
93 <!--<servlet-name>Main Module</servlet-name>-->
94 <!--<url-pattern>/onos.js</url-pattern>-->
95 <!--</servlet-mapping>-->
Sean Condon83fc39f2018-04-19 18:56:13 +010096
Sean Condonffd4bf82018-05-22 23:33:09 +010097 <!--<servlet>-->
98 <!--<servlet-name>Nav Module</servlet-name>-->
99 <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>-->
100 <!--<init-param>-->
101 <!--<param-name>jersey.config.server.provider.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>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100106
Sean Condonffd4bf82018-05-22 23:33:09 +0100107 <!--<servlet-mapping>-->
108 <!--<servlet-name>Nav Module</servlet-name>-->
109 <!--<url-pattern>/nav.html</url-pattern>-->
110 <!--</servlet-mapping>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100111
Sean Condonffd4bf82018-05-22 23:33:09 +0100112 <!--<servlet>-->
113 <!--<servlet-name>View Module</servlet-name>-->
114 <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>-->
115 <!--<init-param>-->
116 <!--<param-name>jersey.config.server.provider.classnames</param-name>-->
117 <!--<param-value>org.onosproject.ui.impl.MainViewResource</param-value>-->
118 <!--</init-param>-->
119 <!--<load-on-startup>1</load-on-startup>-->
120 <!--</servlet>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100121
Sean Condonffd4bf82018-05-22 23:33:09 +0100122 <!--<servlet-mapping>-->
123 <!--<servlet-name>View Module</servlet-name>-->
124 <!--<url-pattern>/app/view/*</url-pattern>-->
125 <!--</servlet-mapping>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100126
Sean Condonffd4bf82018-05-22 23:33:09 +0100127 <!--<servlet>-->
128 <!--<servlet-name>Foo Module</servlet-name>-->
129 <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>-->
130 <!--<init-param>-->
131 <!--<param-name>jersey.config.server.provider.classnames</param-name>-->
132 <!--<param-value>org.onosproject.ui.impl.FooResource</param-value>-->
133 <!--</init-param>-->
134 <!--<load-on-startup>1</load-on-startup>-->
135 <!--</servlet>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100136
Sean Condonffd4bf82018-05-22 23:33:09 +0100137 <!--<servlet-mapping>-->
138 <!--<servlet-name>Foo Module</servlet-name>-->
139 <!--<url-pattern>/raw/*</url-pattern>-->
140 <!--</servlet-mapping>-->
Sean Condon83fc39f2018-04-19 18:56:13 +0100141
Sean Condon3c8e5582018-08-28 23:22:43 +0100142 <servlet>
143 <servlet-name>JAX-RS Service</servlet-name>
144 <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
145 <init-param>
146 <param-name>jersey.config.server.provider.classnames</param-name>
147 <param-value>
148 org.glassfish.jersey.media.multipart.MultiPartFeature,
149 org.onosproject.ui.impl.gui2.LogoutResource,
Sean Condonb2c483c2019-01-16 20:28:55 +0000150 org.onosproject.ui.impl.TopologyResource,
Sean Condon87b78502018-09-17 20:53:24 +0100151 org.onosproject.ui.impl.ApplicationResource,
152 org.onosproject.ui.impl.gui2.NavResource
Sean Condon3c8e5582018-08-28 23:22:43 +0100153 </param-value>
154 </init-param>
155 <load-on-startup>1</load-on-startup>
156 </servlet>
Sean Condon83fc39f2018-04-19 18:56:13 +0100157
Sean Condon3c8e5582018-08-28 23:22:43 +0100158 <servlet-mapping>
159 <servlet-name>JAX-RS Service</servlet-name>
160 <url-pattern>/rs/*</url-pattern>
161 </servlet-mapping>
Sean Condon83fc39f2018-04-19 18:56:13 +0100162
Sean Condonb2c483c2019-01-16 20:28:55 +0000163 <servlet>
164 <servlet-name>Web Socket Service</servlet-name>
165 <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet</servlet-class>
166 <load-on-startup>2</load-on-startup>
167 </servlet>
Sean Condon83fc39f2018-04-19 18:56:13 +0100168
Sean Condonb2c483c2019-01-16 20:28:55 +0000169 <servlet-mapping>
170 <servlet-name>Web Socket Service</servlet-name>
171 <url-pattern>/websock/*</url-pattern>
172 </servlet-mapping>
Sean Condon83fc39f2018-04-19 18:56:13 +0100173
174</web-app>