jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
Ittay Stern | 5f45846 | 2019-07-11 12:08:03 +0300 | [diff] [blame] | 2 | <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 4 | xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
| 5 | version="3.1">
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 6 | <display-name>ecomp-sdk-app-os</display-name>
|
| 7 |
|
| 8 | <!-- The app can function on a HA cluster -->
|
| 9 | <distributable />
|
| 10 |
|
| 11 | <session-config>
|
Ofir Sonsino | efedea1 | 2018-02-20 18:03:30 +0200 | [diff] [blame] | 12 | <session-timeout>30</session-timeout>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 13 | <tracking-mode>COOKIE</tracking-mode>
|
| 14 | </session-config>
|
Ittay Stern | 5f45846 | 2019-07-11 12:08:03 +0300 | [diff] [blame] | 15 |
|
Ofir Sonsino | efedea1 | 2018-02-20 18:03:30 +0200 | [diff] [blame] | 16 | <filter>
|
| 17 | <filter-name>SecurityXssFilter</filter-name>
|
| 18 | <filter-class>org.onap.portalapp.filter.SecurityXssFilter</filter-class>
|
| 19 | </filter>
|
| 20 | <filter-mapping>
|
| 21 | <filter-name>SecurityXssFilter</filter-name>
|
| 22 | <url-pattern>/*</url-pattern>
|
| 23 | </filter-mapping>
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 24 |
|
Ittay Stern | 5f45846 | 2019-07-11 12:08:03 +0300 | [diff] [blame] | 25 | <!--
|
| 26 | `vid-webpack-master` servlet and it's servlet mapping below, serves
|
| 27 | Angular's index.html for any requests like the following, letting
|
| 28 | the JavaScript router do its magic:
|
| 29 | * /vid/app/ui/
|
| 30 | * /vid/app/ui/servicePlanning
|
| 31 | * /vid/app/ui/browseSdc
|
| 32 | -->
|
| 33 | <servlet>
|
| 34 | <servlet-name>vid-webpack-master</servlet-name>
|
| 35 | <jsp-file>/app/ui/index.html</jsp-file>
|
| 36 | </servlet>
|
| 37 |
|
| 38 | <servlet-mapping>
|
| 39 | <servlet-name>vid-webpack-master</servlet-name>
|
| 40 | <url-pattern>/app/ui/</url-pattern>
|
| 41 | </servlet-mapping>
|
| 42 |
|
| 43 | <!--
|
| 44 | All the files under the paths below are served as static files, using
|
| 45 | tomcat's `default` servlet. This overrides the `vid-webpack-master`
|
| 46 | url-pattern.
|
| 47 | The filter `charset-to-utf8-filter` adds "charset=UTF-8" to these files
|
| 48 | content type, as the default content-type is platform-dependant (which
|
| 49 | is not ok for Windows stations).
|
| 50 | -->
|
| 51 | <servlet-mapping>
|
| 52 | <servlet-name>default</servlet-name>
|
| 53 | <url-pattern>/app/ui/*</url-pattern>
|
| 54 | </servlet-mapping>
|
| 55 |
|
| 56 | <filter>
|
| 57 | <filter-name>charset-to-utf8-filter</filter-name>
|
| 58 | <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
| 59 | <init-param>
|
| 60 | <param-name>encoding</param-name>
|
| 61 | <param-value>UTF-8</param-value>
|
| 62 | </init-param>
|
| 63 | <init-param>
|
| 64 | <param-name>forceEncoding</param-name>
|
| 65 | <param-value>true</param-value>
|
| 66 | </init-param>
|
| 67 | </filter>
|
| 68 |
|
| 69 | <filter-mapping>
|
| 70 | <filter-name>charset-to-utf8-filter</filter-name>
|
| 71 | <url-pattern>/app/ui/*</url-pattern>
|
| 72 | </filter-mapping>
|
| 73 |
|
jimmydot | 3982f4f | 2017-05-07 14:58:24 -0400 | [diff] [blame] | 74 | </web-app> |