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> |
Simon Hunt | e5ab138 | 2014-11-25 10:28:51 -0800 | [diff] [blame] | 24 | <welcome-file>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 | <!-- |
| 28 | <servlet> |
| 29 | <servlet-name>Index Page</servlet-name> |
| 30 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 31 | <init-param> |
| 32 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 33 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 34 | </init-param> |
| 35 | <init-param> |
| 36 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 37 | <param-value>org.onosproject.gui.impl.MainIndexResource</param-value> |
| 38 | </init-param> |
| 39 | <load-on-startup>1</load-on-startup> |
| 40 | </servlet> |
| 41 | |
| 42 | <servlet-mapping> |
| 43 | <servlet-name>Index Page</servlet-name> |
| 44 | <url-pattern>/main.html</url-pattern> |
| 45 | </servlet-mapping> |
| 46 | |
| 47 | <servlet> |
| 48 | <servlet-name>Main Module</servlet-name> |
| 49 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 50 | <init-param> |
| 51 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 52 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 53 | </init-param> |
| 54 | <init-param> |
| 55 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 56 | <param-value>org.onosproject.gui.impl.MainExtResource</param-value> |
| 57 | </init-param> |
| 58 | <load-on-startup>1</load-on-startup> |
| 59 | </servlet> |
| 60 | |
| 61 | <servlet-mapping> |
| 62 | <servlet-name>Main Module</servlet-name> |
| 63 | <url-pattern>/dyn/*</url-pattern> |
| 64 | </servlet-mapping> |
| 65 | |
| 66 | <servlet> |
| 67 | <servlet-name>View Module</servlet-name> |
| 68 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 69 | <init-param> |
| 70 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 71 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 72 | </init-param> |
| 73 | <init-param> |
| 74 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 75 | <param-value>org.onosproject.gui.impl.MainViewResource</param-value> |
| 76 | </init-param> |
| 77 | <load-on-startup>1</load-on-startup> |
| 78 | </servlet> |
| 79 | |
| 80 | <servlet-mapping> |
| 81 | <servlet-name>View Module</servlet-name> |
| 82 | <url-pattern>/app/view/*</url-pattern> |
| 83 | </servlet-mapping> |
| 84 | --> |
| 85 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 86 | <servlet> |
| 87 | <servlet-name>JAX-RS Service</servlet-name> |
| 88 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 89 | <init-param> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame^] | 90 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 91 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 92 | </init-param> |
| 93 | <init-param> |
| 94 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 95 | <param-value> |
| 96 | org.onosproject.ui.impl.TopologyResource, |
| 97 | org.onosproject.ui.impl.DeviceGuiResource |
| 98 | </param-value> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 99 | </init-param> |
| 100 | <load-on-startup>1</load-on-startup> |
| 101 | </servlet> |
| 102 | |
| 103 | <servlet-mapping> |
| 104 | <servlet-name>JAX-RS Service</servlet-name> |
| 105 | <url-pattern>/rs/*</url-pattern> |
| 106 | </servlet-mapping> |
| 107 | |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 108 | <servlet> |
| 109 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame^] | 110 | <servlet-class>org.onosproject.ui.impl.GuiWebSocketServlet</servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 111 | <load-on-startup>2</load-on-startup> |
| 112 | </servlet> |
| 113 | |
| 114 | <servlet-mapping> |
| 115 | <servlet-name>Web Socket Service</servlet-name> |
| 116 | <url-pattern>/ws/*</url-pattern> |
| 117 | </servlet-mapping> |
| 118 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 119 | </web-app> |