Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright 2014-present Open Networking Foundation |
| 4 | ~ |
| 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 |
| 8 | ~ |
| 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. |
| 16 | --> |
| 17 | <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 18 | xmlns="http://java.sun.com/xml/ns/javaee" |
| 19 | xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
| 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 2</display-name> |
| 23 | |
| 24 | <welcome-file-list> |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 25 | <welcome-file>index.html</welcome-file> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 26 | </welcome-file-list> |
| 27 | |
| 28 | <!-- |
| 29 | --> |
| 30 | <security-constraint> |
| 31 | <web-resource-collection> |
| 32 | <web-resource-name>Secured</web-resource-name> |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 33 | <url-pattern>/index.html</url-pattern> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 34 | </web-resource-collection> |
| 35 | <web-resource-collection> |
| 36 | <web-resource-name>Secured API</web-resource-name> |
| 37 | <url-pattern>/rs/applications/*</url-pattern> |
| 38 | </web-resource-collection> |
Sean Condon | 87b7850 | 2018-09-17 20:53:24 +0100 | [diff] [blame] | 39 | <web-resource-collection> |
| 40 | <web-resource-name>Secured Nav</web-resource-name> |
| 41 | <url-pattern>/rs/nav/*</url-pattern> |
| 42 | </web-resource-collection> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 43 | <auth-constraint> |
| 44 | <role-name>admin</role-name> |
| 45 | </auth-constraint> |
| 46 | <!-- |
| 47 | <user-data-constraint> |
| 48 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
| 49 | </user-data-constraint> |
| 50 | --> |
| 51 | </security-constraint> |
| 52 | |
| 53 | <security-role> |
| 54 | <role-name>admin</role-name> |
| 55 | </security-role> |
| 56 | |
| 57 | <login-config> |
| 58 | <auth-method>FORM</auth-method> |
| 59 | <realm-name>karaf</realm-name> |
| 60 | <form-login-config> |
| 61 | <form-login-page>/login.html</form-login-page> |
| 62 | <form-error-page>/error.html</form-error-page> |
| 63 | </form-login-config> |
| 64 | </login-config> |
| 65 | |
| 66 | <servlet> |
| 67 | <servlet-name>Index Page</servlet-name> |
| 68 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
| 69 | <init-param> |
| 70 | <param-name>jersey.config.server.provider.classnames</param-name> |
| 71 | <param-value>org.onosproject.ui.impl.MainIndexResource</param-value> |
| 72 | </init-param> |
| 73 | <load-on-startup>1</load-on-startup> |
| 74 | </servlet> |
| 75 | |
| 76 | <servlet-mapping> |
| 77 | <servlet-name>Index Page</servlet-name> |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 78 | <url-pattern>/index.html</url-pattern> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 79 | </servlet-mapping> |
| 80 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 81 | <!--<servlet>--> |
| 82 | <!--<servlet-name>Main Module</servlet-name>--> |
| 83 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 84 | <!--<init-param>--> |
| 85 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 86 | <!--<param-value>org.onosproject.ui.impl.MainModuleResource--> |
| 87 | <!--</param-value>--> |
| 88 | <!--</init-param>--> |
| 89 | <!--<load-on-startup>1</load-on-startup>--> |
| 90 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 91 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 92 | <!--<servlet-mapping>--> |
| 93 | <!--<servlet-name>Main Module</servlet-name>--> |
| 94 | <!--<url-pattern>/onos.js</url-pattern>--> |
| 95 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 96 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 97 | <!--<servlet>--> |
| 98 | <!--<servlet-name>Nav Module</servlet-name>--> |
| 99 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 100 | <!--<init-param>--> |
| 101 | <!--<param-name>jersey.config.server.provider.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>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 106 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 107 | <!--<servlet-mapping>--> |
| 108 | <!--<servlet-name>Nav Module</servlet-name>--> |
| 109 | <!--<url-pattern>/nav.html</url-pattern>--> |
| 110 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 111 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 112 | <!--<servlet>--> |
| 113 | <!--<servlet-name>View Module</servlet-name>--> |
| 114 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 115 | <!--<init-param>--> |
| 116 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 117 | <!--<param-value>org.onosproject.ui.impl.MainViewResource</param-value>--> |
| 118 | <!--</init-param>--> |
| 119 | <!--<load-on-startup>1</load-on-startup>--> |
| 120 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 121 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 122 | <!--<servlet-mapping>--> |
| 123 | <!--<servlet-name>View Module</servlet-name>--> |
| 124 | <!--<url-pattern>/app/view/*</url-pattern>--> |
| 125 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 126 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 127 | <!--<servlet>--> |
| 128 | <!--<servlet-name>Foo Module</servlet-name>--> |
| 129 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 130 | <!--<init-param>--> |
| 131 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 132 | <!--<param-value>org.onosproject.ui.impl.FooResource</param-value>--> |
| 133 | <!--</init-param>--> |
| 134 | <!--<load-on-startup>1</load-on-startup>--> |
| 135 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 136 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 137 | <!--<servlet-mapping>--> |
| 138 | <!--<servlet-name>Foo Module</servlet-name>--> |
| 139 | <!--<url-pattern>/raw/*</url-pattern>--> |
| 140 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 141 | |
Sean Condon | 3c8e558 | 2018-08-28 23:22:43 +0100 | [diff] [blame] | 142 | <servlet> |
| 143 | <servlet-name>JAX-RS Service</servlet-name> |
| 144 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
| 145 | <init-param> |
| 146 | <param-name>jersey.config.server.provider.classnames</param-name> |
| 147 | <param-value> |
| 148 | org.glassfish.jersey.media.multipart.MultiPartFeature, |
| 149 | org.onosproject.ui.impl.gui2.LogoutResource, |
Sean Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 150 | org.onosproject.ui.impl.TopologyResource, |
Sean Condon | 87b7850 | 2018-09-17 20:53:24 +0100 | [diff] [blame] | 151 | org.onosproject.ui.impl.ApplicationResource, |
| 152 | org.onosproject.ui.impl.gui2.NavResource |
Sean Condon | 3c8e558 | 2018-08-28 23:22:43 +0100 | [diff] [blame] | 153 | </param-value> |
| 154 | </init-param> |
| 155 | <load-on-startup>1</load-on-startup> |
| 156 | </servlet> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 157 | |
Sean Condon | 3c8e558 | 2018-08-28 23:22:43 +0100 | [diff] [blame] | 158 | <servlet-mapping> |
| 159 | <servlet-name>JAX-RS Service</servlet-name> |
| 160 | <url-pattern>/rs/*</url-pattern> |
| 161 | </servlet-mapping> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 162 | |
Sean Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 163 | <servlet> |
| 164 | <servlet-name>Web Socket Service</servlet-name> |
| 165 | <servlet-class>org.onosproject.ui.impl.UiWebSocketServlet</servlet-class> |
| 166 | <load-on-startup>2</load-on-startup> |
| 167 | </servlet> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 168 | |
Sean Condon | b2c483c | 2019-01-16 20:28:55 +0000 | [diff] [blame] | 169 | <servlet-mapping> |
| 170 | <servlet-name>Web Socket Service</servlet-name> |
| 171 | <url-pattern>/websock/*</url-pattern> |
| 172 | </servlet-mapping> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 173 | |
| 174 | </web-app> |