UI adaptation for supporting ONAP portal SDK
[validation.git] / ui / src / main / webapp / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3     Licensed under the Apache License, Version 2.0 (the "License"); you may not
4     use this file except in compliance with the License. You may obtain a copy
5     of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
6     by applicable law or agreed to in writing, software distributed under the
7     License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
8     OF ANY KIND, either express or implied. See the License for the specific
9     language governing permissions and limitations under the License. -->
10 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee"
12     xmlns:web="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
13     version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee">
14
15     <display-name>AECBlueprintValidationUI</display-name>
16
17     <!-- The app can function on a HA cluster -->
18     <distributable />
19
20     <session-config>
21         <session-timeout>30</session-timeout>
22         <tracking-mode>COOKIE</tracking-mode>
23     </session-config>
24     <filter>
25         <filter-name>SecurityXssFilter</filter-name>
26         <filter-class>org.akraino.validation.ui.filter.SecurityXssFilter
27         </filter-class>
28     </filter>
29     <filter-mapping>
30         <filter-name>SecurityXssFilter</filter-name>
31         <url-pattern>/*</url-pattern>
32     </filter-mapping>
33     <filter>
34         <filter-name>springSessionRepositoryFilter</filter-name>
35         <filter-class>org.onap.portalapp.music.filter.MusicSessionRepositoryFilter
36         </filter-class>
37     </filter>
38     <filter-mapping>
39         <filter-name>springSessionRepositoryFilter</filter-name>
40         <url-pattern>/*</url-pattern>
41         <dispatcher>REQUEST</dispatcher>
42         <dispatcher>ERROR</dispatcher>
43     </filter-mapping>
44     <error-page>
45         <location>/WEB-INF/jsp/error.jsp</location>
46     </error-page>
47
48 </web-app>