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> |
| 39 | <auth-constraint> |
| 40 | <role-name>admin</role-name> |
| 41 | </auth-constraint> |
| 42 | <!-- |
| 43 | <user-data-constraint> |
| 44 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
| 45 | </user-data-constraint> |
| 46 | --> |
| 47 | </security-constraint> |
| 48 | |
| 49 | <security-role> |
| 50 | <role-name>admin</role-name> |
| 51 | </security-role> |
| 52 | |
| 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 | |
| 62 | <servlet> |
| 63 | <servlet-name>Index Page</servlet-name> |
| 64 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
| 65 | <init-param> |
| 66 | <param-name>jersey.config.server.provider.classnames</param-name> |
| 67 | <param-value>org.onosproject.ui.impl.MainIndexResource</param-value> |
| 68 | </init-param> |
| 69 | <load-on-startup>1</load-on-startup> |
| 70 | </servlet> |
| 71 | |
| 72 | <servlet-mapping> |
| 73 | <servlet-name>Index Page</servlet-name> |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame^] | 74 | <url-pattern>/index.html</url-pattern> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 75 | </servlet-mapping> |
| 76 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 77 | <!--<servlet>--> |
| 78 | <!--<servlet-name>Main Module</servlet-name>--> |
| 79 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 80 | <!--<init-param>--> |
| 81 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 82 | <!--<param-value>org.onosproject.ui.impl.MainModuleResource--> |
| 83 | <!--</param-value>--> |
| 84 | <!--</init-param>--> |
| 85 | <!--<load-on-startup>1</load-on-startup>--> |
| 86 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 87 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 88 | <!--<servlet-mapping>--> |
| 89 | <!--<servlet-name>Main Module</servlet-name>--> |
| 90 | <!--<url-pattern>/onos.js</url-pattern>--> |
| 91 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 92 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 93 | <!--<servlet>--> |
| 94 | <!--<servlet-name>Nav Module</servlet-name>--> |
| 95 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 96 | <!--<init-param>--> |
| 97 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 98 | <!--<param-value>org.onosproject.ui.impl.MainNavResource</param-value>--> |
| 99 | <!--</init-param>--> |
| 100 | <!--<load-on-startup>1</load-on-startup>--> |
| 101 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 102 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 103 | <!--<servlet-mapping>--> |
| 104 | <!--<servlet-name>Nav Module</servlet-name>--> |
| 105 | <!--<url-pattern>/nav.html</url-pattern>--> |
| 106 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 107 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 108 | <!--<servlet>--> |
| 109 | <!--<servlet-name>View Module</servlet-name>--> |
| 110 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 111 | <!--<init-param>--> |
| 112 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 113 | <!--<param-value>org.onosproject.ui.impl.MainViewResource</param-value>--> |
| 114 | <!--</init-param>--> |
| 115 | <!--<load-on-startup>1</load-on-startup>--> |
| 116 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 117 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 118 | <!--<servlet-mapping>--> |
| 119 | <!--<servlet-name>View Module</servlet-name>--> |
| 120 | <!--<url-pattern>/app/view/*</url-pattern>--> |
| 121 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 122 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 123 | <!--<servlet>--> |
| 124 | <!--<servlet-name>Foo Module</servlet-name>--> |
| 125 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 126 | <!--<init-param>--> |
| 127 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 128 | <!--<param-value>org.onosproject.ui.impl.FooResource</param-value>--> |
| 129 | <!--</init-param>--> |
| 130 | <!--<load-on-startup>1</load-on-startup>--> |
| 131 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 132 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 133 | <!--<servlet-mapping>--> |
| 134 | <!--<servlet-name>Foo Module</servlet-name>--> |
| 135 | <!--<url-pattern>/raw/*</url-pattern>--> |
| 136 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 137 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 138 | <!--<servlet>--> |
| 139 | <!--<servlet-name>JAX-RS Service</servlet-name>--> |
| 140 | <!--<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>--> |
| 141 | <!--<init-param>--> |
| 142 | <!--<param-name>jersey.config.server.provider.classnames</param-name>--> |
| 143 | <!--<param-value>--> |
| 144 | <!--org.glassfish.jersey.media.multipart.MultiPartFeature,--> |
| 145 | <!--org.onosproject.ui.impl.LogoutResource,--> |
| 146 | <!--org.onosproject.ui.impl.TopologyResource,--> |
| 147 | <!--org.onosproject.ui.impl.ApplicationResource--> |
| 148 | <!--</param-value>--> |
| 149 | <!--</init-param>--> |
| 150 | <!--<load-on-startup>1</load-on-startup>--> |
| 151 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 152 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 153 | <!--<servlet-mapping>--> |
| 154 | <!--<servlet-name>JAX-RS Service</servlet-name>--> |
| 155 | <!--<url-pattern>/rs/*</url-pattern>--> |
| 156 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 157 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 158 | <!--<servlet>--> |
| 159 | <!--<servlet-name>Web Socket Service</servlet-name>--> |
| 160 | <!--<servlet-class>org.onosproject.ui.impl.UiWebSocketServlet--> |
| 161 | <!--</servlet-class>--> |
| 162 | <!--<load-on-startup>2</load-on-startup>--> |
| 163 | <!--</servlet>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 164 | |
Sean Condon | ffd4bf8 | 2018-05-22 23:33:09 +0100 | [diff] [blame] | 165 | <!--<servlet-mapping>--> |
| 166 | <!--<servlet-name>Web Socket Service</servlet-name>--> |
| 167 | <!--<url-pattern>/websock/*</url-pattern>--> |
| 168 | <!--</servlet-mapping>--> |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 169 | |
| 170 | </web-app> |