blob: 6007fdc227ddab41a90e309d8316b65efbea8509 [file] [log] [blame]
jimmydot3982f4f2017-05-07 14:58:24 -04001<?xml version="1.0" encoding="UTF-8"?>
Ittay Stern5f458462019-07-11 12:08:03 +03002<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">
jimmydot3982f4f2017-05-07 14:58:24 -04006 <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 Sonsinoefedea12018-02-20 18:03:30 +020012 <session-timeout>30</session-timeout>
jimmydot3982f4f2017-05-07 14:58:24 -040013 <tracking-mode>COOKIE</tracking-mode>
14 </session-config>
Ittay Stern5f458462019-07-11 12:08:03 +030015
Ofir Sonsinoefedea12018-02-20 18:03:30 +020016 <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>
jimmydot3982f4f2017-05-07 14:58:24 -040024
Ittay Stern5f458462019-07-11 12:08:03 +030025 <!--
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
jimmydot3982f4f2017-05-07 14:58:24 -040074</web-app>