tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 2 | <!-- |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 3 | ~ Copyright 2014 Open Networking Laboratory |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 4 | ~ |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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 |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 8 | ~ |
Thomas Vachuska | 4f1a60c | 2014-10-28 13:39:07 -0700 | [diff] [blame] | 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. |
Thomas Vachuska | 781d18b | 2014-10-27 10:31:25 -0700 | [diff] [blame] | 16 | --> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 17 | <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" |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 19 | 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 Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 24 | <welcome-file>legacy/index.html</welcome-file> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 25 | </welcome-file-list> |
| 26 | |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 27 | <!-- |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 28 | <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 Vachuska | 9730ec9 | 2015-03-07 17:25:21 -0800 | [diff] [blame] | 53 | --> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 54 | <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 Vachuska | a050989 | 2015-02-21 22:18:41 -0800 | [diff] [blame] | 63 | <param-value>org.onosproject.ui.impl.MainIndexResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 64 | </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 Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 82 | <param-value>org.onosproject.ui.impl.MainModuleResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 83 | </init-param> |
| 84 | <load-on-startup>1</load-on-startup> |
| 85 | </servlet> |
| 86 | |
| 87 | <servlet-mapping> |
| 88 | <servlet-name>Main Module</servlet-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 89 | <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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 109 | </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 Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 120 | <param-value>org.onosproject.ui.impl.MainViewResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 121 | </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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 129 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 130 | <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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 134 | <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> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 143 | </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 Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 152 | <servlet> |
| 153 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 154 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet</servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 155 | <load-on-startup>2</load-on-startup> |
| 156 | </servlet> |
| 157 | |
| 158 | <servlet-mapping> |
| 159 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 160 | <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 Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 172 | <url-pattern>/ws/*</url-pattern> |
| 173 | </servlet-mapping> |
| 174 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 175 | </web-app> |