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 | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 3 | ~ Copyright 2014-present Open Networking Foundation |
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 | c0f757a | 2018-10-23 11:41:34 -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> |
Andrea Campanella | b582df3 | 2017-05-05 09:08:11 -0700 | [diff] [blame] | 35 | <web-resource-collection> |
| 36 | <web-resource-name>Secured API</web-resource-name> |
| 37 | <url-pattern>/rs/applications/*</url-pattern> |
| 38 | </web-resource-collection> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 39 | <auth-constraint> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 40 | <role-name>admin</role-name> |
| 41 | </auth-constraint> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 42 | <!-- |
| 43 | <user-data-constraint> |
| 44 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
| 45 | </user-data-constraint> |
| 46 | --> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 47 | </security-constraint> |
| 48 | |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 49 | <security-role> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 50 | <role-name>admin</role-name> |
| 51 | </security-role> |
Thomas Vachuska | 93da11f | 2015-02-22 11:09:10 -0800 | [diff] [blame] | 52 | |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 53 | <login-config> |
| 54 | <auth-method>FORM</auth-method> |
| 55 | <realm-name>karaf</realm-name> |
| 56 | <form-login-config> |
| 57 | <form-login-page>/login.html</form-login-page> |
| 58 | <form-error-page>/error.html</form-error-page> |
| 59 | </form-login-config> |
| 60 | </login-config> |
| 61 | |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 62 | <servlet> |
| 63 | <servlet-name>Index Page</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 64 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 65 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 66 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | a050989 | 2015-02-21 22:18:41 -0800 | [diff] [blame] | 67 | <param-value>org.onosproject.ui.impl.MainIndexResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 68 | </init-param> |
| 69 | <load-on-startup>1</load-on-startup> |
| 70 | </servlet> |
| 71 | |
| 72 | <servlet-mapping> |
| 73 | <servlet-name>Index Page</servlet-name> |
Thomas Vachuska | 4c2fa06 | 2015-03-23 15:07:55 -0700 | [diff] [blame] | 74 | <url-pattern>/index.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 75 | </servlet-mapping> |
| 76 | |
| 77 | <servlet> |
| 78 | <servlet-name>Main Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 79 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 80 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 81 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 82 | <param-value>org.onosproject.ui.impl.MainModuleResource |
| 83 | </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> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 95 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 96 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 97 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | e95da77 | 2015-02-23 15:50:11 -0800 | [diff] [blame] | 98 | <param-value>org.onosproject.ui.impl.MainNavResource</param-value> |
| 99 | </init-param> |
| 100 | <load-on-startup>1</load-on-startup> |
| 101 | </servlet> |
| 102 | |
| 103 | <servlet-mapping> |
| 104 | <servlet-name>Nav Module</servlet-name> |
| 105 | <url-pattern>/nav.html</url-pattern> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 106 | </servlet-mapping> |
| 107 | |
| 108 | <servlet> |
| 109 | <servlet-name>View Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 110 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 111 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 112 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | 5f39965 | 2015-02-23 15:17:36 -0800 | [diff] [blame] | 113 | <param-value>org.onosproject.ui.impl.MainViewResource</param-value> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 114 | </init-param> |
| 115 | <load-on-startup>1</load-on-startup> |
| 116 | </servlet> |
| 117 | |
| 118 | <servlet-mapping> |
| 119 | <servlet-name>View Module</servlet-name> |
| 120 | <url-pattern>/app/view/*</url-pattern> |
| 121 | </servlet-mapping> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 122 | |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 123 | <servlet> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 124 | <servlet-name>Foo Module</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 125 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 126 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 127 | <param-name>jersey.config.server.provider.classnames</param-name> |
Simon Hunt | a834660 | 2016-01-30 14:34:42 -0800 | [diff] [blame] | 128 | <param-value>org.onosproject.ui.impl.FooResource</param-value> |
| 129 | </init-param> |
| 130 | <load-on-startup>1</load-on-startup> |
| 131 | </servlet> |
| 132 | |
| 133 | <servlet-mapping> |
| 134 | <servlet-name>Foo Module</servlet-name> |
| 135 | <url-pattern>/raw/*</url-pattern> |
| 136 | </servlet-mapping> |
| 137 | |
| 138 | <servlet> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 139 | <servlet-name>JAX-RS Service</servlet-name> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 140 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 141 | <init-param> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 142 | <param-name>jersey.config.server.provider.classnames</param-name> |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 143 | <param-value> |
Jian Li | 9d61649 | 2016-03-09 10:52:49 -0800 | [diff] [blame] | 144 | org.glassfish.jersey.media.multipart.MultiPartFeature, |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 145 | org.onosproject.ui.impl.LogoutResource, |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 146 | org.onosproject.ui.impl.TopologyResource, |
Thomas Vachuska | 530e52a | 2015-05-06 19:51:32 -0700 | [diff] [blame] | 147 | org.onosproject.ui.impl.ApplicationResource |
Thomas Vachuska | fe8c98a | 2015-02-04 01:24:32 -0800 | [diff] [blame] | 148 | </param-value> |
tom | 0eb04ca | 2014-08-25 14:34:51 -0700 | [diff] [blame] | 149 | </init-param> |
| 150 | <load-on-startup>1</load-on-startup> |
| 151 | </servlet> |
| 152 | |
| 153 | <servlet-mapping> |
| 154 | <servlet-name>JAX-RS Service</servlet-name> |
| 155 | <url-pattern>/rs/*</url-pattern> |
| 156 | </servlet-mapping> |
| 157 | |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 158 | <servlet> |
| 159 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | eff0e4e | 2015-08-11 00:26:24 -0700 | [diff] [blame] | 160 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet |
| 161 | </servlet-class> |
Thomas Vachuska | 7d638d3 | 2014-11-07 10:24:43 -0800 | [diff] [blame] | 162 | <load-on-startup>2</load-on-startup> |
| 163 | </servlet> |
| 164 | |
| 165 | <servlet-mapping> |
| 166 | <servlet-name>Web Socket Service</servlet-name> |
Thomas Vachuska | 329af53 | 2015-03-10 02:08:33 -0700 | [diff] [blame] | 167 | <url-pattern>/websock/*</url-pattern> |
| 168 | </servlet-mapping> |
| 169 | |
Brian O'Connor | abafb50 | 2014-12-02 22:26:20 -0800 | [diff] [blame] | 170 | </web-app> |