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 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 3 | ~ Copyright 2014-present 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> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 60 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 61 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 62 | <param-name>jersey.config.server.provider.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 | </servlet-mapping> |
| 72 | |
| 73 | <servlet> |
| 74 | <servlet-name>Main Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 75 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 76 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 77 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 78 | <param-value>org.onosproject.ui.impl.MainModuleResource |
| 79 | </param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 80 | </init-param> |
| 81 | <load-on-startup>1</load-on-startup> |
| 82 | </servlet> |
| 83 | |
| 84 | <servlet-mapping> |
| 85 | <servlet-name>Main Module</servlet-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 86 | <url-pattern>/onos.js</url-pattern> |
| 87 | </servlet-mapping> |
| 88 | |
| 89 | <servlet> |
| 90 | <servlet-name>Nav Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 91 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 92 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 93 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 94 | <param-value>org.onosproject.ui.impl.MainNavResource</param-value> |
| 95 | </init-param> |
| 96 | <load-on-startup>1</load-on-startup> |
| 97 | </servlet> |
| 98 | |
| 99 | <servlet-mapping> |
| 100 | <servlet-name>Nav Module</servlet-name> |
| 101 | <url-pattern>/nav.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 102 | </servlet-mapping> |
| 103 | |
| 104 | <servlet> |
| 105 | <servlet-name>View Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 106 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 107 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 108 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 109 | <param-value>org.onosproject.ui.impl.MainViewResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 110 | </init-param> |
| 111 | <load-on-startup>1</load-on-startup> |
| 112 | </servlet> |
| 113 | |
| 114 | <servlet-mapping> |
| 115 | <servlet-name>View Module</servlet-name> |
| 116 | <url-pattern>/app/view/*</url-pattern> |
| 117 | </servlet-mapping> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 118 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 119 | <servlet> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 120 | <servlet-name>Foo Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 121 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 122 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 123 | <param-name>jersey.config.server.provider.classnames</param-name> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 124 | <param-value>org.onosproject.ui.impl.FooResource</param-value> |
| 125 | </init-param> |
| 126 | <load-on-startup>1</load-on-startup> |
| 127 | </servlet> |
| 128 | |
| 129 | <servlet-mapping> |
| 130 | <servlet-name>Foo Module</servlet-name> |
| 131 | <url-pattern>/raw/*</url-pattern> |
| 132 | </servlet-mapping> |
| 133 | |
| 134 | <servlet> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 135 | <servlet-name>JAX-RS Service</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 136 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 137 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 138 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 139 | <param-value> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 140 | org.glassfish.jersey.media.multipart.MultiPartFeature, |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 141 | org.onosproject.ui.impl.LogoutResource, |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 142 | org.onosproject.ui.impl.TopologyResource, |
Thomas Vachuska | 530e52a | 2015-05-06 19:51:32 -0700 | [diff] [blame] | 143 | org.onosproject.ui.impl.ApplicationResource |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 144 | </param-value> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 145 | </init-param> |
| 146 | <load-on-startup>1</load-on-startup> |
| 147 | </servlet> |
| 148 | |
| 149 | <servlet-mapping> |
| 150 | <servlet-name>JAX-RS Service</servlet-name> |
| 151 | <url-pattern>/rs/*</url-pattern> |
| 152 | </servlet-mapping> |
| 153 | |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 154 | <servlet> |
| 155 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 156 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet |
| 157 | </servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 158 | <load-on-startup>2</load-on-startup> |
| 159 | </servlet> |
| 160 | |
| 161 | <servlet-mapping> |
| 162 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 163 | <url-pattern>/websock/*</url-pattern> |
| 164 | </servlet-mapping> |
| 165 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 166 | </web-app> |