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 | 4c2fa06 | 2015-03-23 15:07:55 -0700 | [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 | <!-- |
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> |
Thomas Vachuska | 4c2fa06 | 2015-03-23 15:07:55 -0700 | [diff] [blame] | 70 | <url-pattern>/index.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 71 | <url-pattern>/main.html</url-pattern> |
| 72 | </servlet-mapping> |
| 73 | |
| 74 | <servlet> |
| 75 | <servlet-name>Main Module</servlet-name> |
| 76 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 77 | <init-param> |
| 78 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 79 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 80 | </init-param> |
| 81 | <init-param> |
| 82 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 83 | <param-value>org.onosproject.ui.impl.MainModuleResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 84 | </init-param> |
| 85 | <load-on-startup>1</load-on-startup> |
| 86 | </servlet> |
| 87 | |
| 88 | <servlet-mapping> |
| 89 | <servlet-name>Main Module</servlet-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 90 | <url-pattern>/onos.js</url-pattern> |
| 91 | </servlet-mapping> |
| 92 | |
| 93 | <servlet> |
| 94 | <servlet-name>Nav Module</servlet-name> |
| 95 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 96 | <init-param> |
| 97 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 98 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 99 | </init-param> |
| 100 | <init-param> |
| 101 | <param-name>com.sun.jersey.config.property.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> |
| 106 | |
| 107 | <servlet-mapping> |
| 108 | <servlet-name>Nav Module</servlet-name> |
| 109 | <url-pattern>/nav.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 110 | </servlet-mapping> |
| 111 | |
| 112 | <servlet> |
| 113 | <servlet-name>View Module</servlet-name> |
| 114 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 115 | <init-param> |
| 116 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 117 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 118 | </init-param> |
| 119 | <init-param> |
| 120 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
Thomas Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 121 | <param-value>org.onosproject.ui.impl.MainViewResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 122 | </init-param> |
| 123 | <load-on-startup>1</load-on-startup> |
| 124 | </servlet> |
| 125 | |
| 126 | <servlet-mapping> |
| 127 | <servlet-name>View Module</servlet-name> |
| 128 | <url-pattern>/app/view/*</url-pattern> |
| 129 | </servlet-mapping> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 130 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 131 | <servlet> |
| 132 | <servlet-name>JAX-RS Service</servlet-name> |
| 133 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 134 | <init-param> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 135 | <param-name>com.sun.jersey.config.property.resourceConfigClass</param-name> |
| 136 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig</param-value> |
| 137 | </init-param> |
| 138 | <init-param> |
| 139 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 140 | <param-value> |
| 141 | org.onosproject.ui.impl.TopologyResource, |
| 142 | org.onosproject.ui.impl.DeviceGuiResource |
| 143 | </param-value> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 144 | </init-param> |
| 145 | <load-on-startup>1</load-on-startup> |
| 146 | </servlet> |
| 147 | |
| 148 | <servlet-mapping> |
| 149 | <servlet-name>JAX-RS Service</servlet-name> |
| 150 | <url-pattern>/rs/*</url-pattern> |
| 151 | </servlet-mapping> |
| 152 | |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 153 | <servlet> |
| 154 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 155 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet</servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 156 | <load-on-startup>2</load-on-startup> |
| 157 | </servlet> |
| 158 | |
| 159 | <servlet-mapping> |
| 160 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 161 | <url-pattern>/websock/*</url-pattern> |
| 162 | </servlet-mapping> |
| 163 | |
| 164 | |
| 165 | <servlet> |
| 166 | <servlet-name>Legacy Web Socket Service</servlet-name> |
| 167 | <servlet-class>org.onosproject.ui.impl.GuiWebSocketServlet</servlet-class> |
| 168 | <load-on-startup>2</load-on-startup> |
| 169 | </servlet> |
| 170 | |
| 171 | <servlet-mapping> |
| 172 | <servlet-name>Legacy Web Socket Service</servlet-name> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 173 | <url-pattern>/ws/*</url-pattern> |
| 174 | </servlet-mapping> |
| 175 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 176 | </web-app> |