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 | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 17 | <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 18 | xmlns="http://java.sun.com/xml/ns/javaee" |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 19 | 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] | 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</display-name> |
| 23 | |
| 24 | <welcome-file-list> |
Thomas Vachuska | 4c2fa06 | 2015-03-23 15:07:55 -0700 | [diff] [blame] | 25 | <welcome-file>index.html</welcome-file> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 26 | </welcome-file-list> |
| 27 | |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 28 | <!-- |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 29 | --> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 30 | <security-constraint> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 31 | <web-resource-collection> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 32 | <web-resource-name>Secured</web-resource-name> |
| 33 | <url-pattern>/index.html</url-pattern> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 34 | </web-resource-collection> |
| 35 | <auth-constraint> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 36 | <role-name>admin</role-name> |
| 37 | </auth-constraint> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 38 | <!-- |
| 39 | <user-data-constraint> |
| 40 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
| 41 | </user-data-constraint> |
| 42 | --> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 43 | </security-constraint> |
| 44 | |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 45 | <security-role> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 46 | <role-name>admin</role-name> |
| 47 | </security-role> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 48 | |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 49 | <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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 58 | <servlet> |
| 59 | <servlet-name>Index Page</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 60 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer |
| 61 | </servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 62 | <init-param> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 63 | <param-name>com.sun.jersey.config.property.resourceConfigClass |
| 64 | </param-name> |
| 65 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig |
| 66 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 67 | </init-param> |
| 68 | <init-param> |
| 69 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
Thomas Vachuska | a050989 | 2015-02-21 22:18:41 -0800 | [diff] [blame] | 70 | <param-value>org.onosproject.ui.impl.MainIndexResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 71 | </init-param> |
| 72 | <load-on-startup>1</load-on-startup> |
| 73 | </servlet> |
| 74 | |
| 75 | <servlet-mapping> |
| 76 | <servlet-name>Index Page</servlet-name> |
Thomas Vachuska | 4c2fa06 | 2015-03-23 15:07:55 -0700 | [diff] [blame] | 77 | <url-pattern>/index.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 78 | </servlet-mapping> |
| 79 | |
| 80 | <servlet> |
| 81 | <servlet-name>Main Module</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 82 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer |
| 83 | </servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 84 | <init-param> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 85 | <param-name>com.sun.jersey.config.property.resourceConfigClass |
| 86 | </param-name> |
| 87 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig |
| 88 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 89 | </init-param> |
| 90 | <init-param> |
| 91 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 92 | <param-value>org.onosproject.ui.impl.MainModuleResource |
| 93 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 94 | </init-param> |
| 95 | <load-on-startup>1</load-on-startup> |
| 96 | </servlet> |
| 97 | |
| 98 | <servlet-mapping> |
| 99 | <servlet-name>Main Module</servlet-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 100 | <url-pattern>/onos.js</url-pattern> |
| 101 | </servlet-mapping> |
| 102 | |
| 103 | <servlet> |
| 104 | <servlet-name>Nav Module</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 105 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer |
| 106 | </servlet-class> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 107 | <init-param> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 108 | <param-name>com.sun.jersey.config.property.resourceConfigClass |
| 109 | </param-name> |
| 110 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig |
| 111 | </param-value> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 112 | </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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 123 | </servlet-mapping> |
| 124 | |
| 125 | <servlet> |
| 126 | <servlet-name>View Module</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 127 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer |
| 128 | </servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 129 | <init-param> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 130 | <param-name>com.sun.jersey.config.property.resourceConfigClass |
| 131 | </param-name> |
| 132 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig |
| 133 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 134 | </init-param> |
| 135 | <init-param> |
| 136 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
Thomas Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 137 | <param-value>org.onosproject.ui.impl.MainViewResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 138 | </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 Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 146 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 147 | <servlet> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 148 | <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> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 170 | <servlet-name>JAX-RS Service</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 171 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer |
| 172 | </servlet-class> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 173 | <init-param> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 174 | <param-name>com.sun.jersey.config.property.resourceConfigClass |
| 175 | </param-name> |
| 176 | <param-value>com.sun.jersey.api.core.ClassNamesResourceConfig |
| 177 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 178 | </init-param> |
| 179 | <init-param> |
| 180 | <param-name>com.sun.jersey.config.property.classnames</param-name> |
| 181 | <param-value> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 182 | org.onosproject.ui.impl.LogoutResource, |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 183 | org.onosproject.ui.impl.TopologyResource, |
Thomas Vachuska | 530e52a | 2015-05-06 19:51:32 -0700 | [diff] [blame] | 184 | org.onosproject.ui.impl.ApplicationResource |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 185 | </param-value> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 186 | </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 Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 195 | <servlet> |
| 196 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 197 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet |
| 198 | </servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 199 | <load-on-startup>2</load-on-startup> |
| 200 | </servlet> |
| 201 | |
| 202 | <servlet-mapping> |
| 203 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 204 | <url-pattern>/websock/*</url-pattern> |
| 205 | </servlet-mapping> |
| 206 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 207 | </web-app> |