UI adaptation for supporting ONAP portal SDK
[validation.git] / ui / src / main / webapp / WEB-INF / web.xml
old mode 100755 (executable)
new mode 100644 (file)
index 0ef6de8..92a2d59
@@ -1,25 +1,48 @@
-<!--
-Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+    Licensed under the Apache License, Version 2.0 (the "License"); you may not
+    use this file except in compliance with the License. You may obtain a copy
+    of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+    by applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+    OF ANY KIND, either express or implied. See the License for the specific
+    language governing permissions and limitations under the License. -->
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee"
+    xmlns:web="http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
+    version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee">
 
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
+    <display-name>AECBlueprintValidationUI</display-name>
 
-       http://www.apache.org/licenses/LICENSE-2.0
+    <!-- The app can function on a HA cluster -->
+    <distributable />
 
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
+    <session-config>
+        <session-timeout>30</session-timeout>
+        <tracking-mode>COOKIE</tracking-mode>
+    </session-config>
+    <filter>
+        <filter-name>SecurityXssFilter</filter-name>
+        <filter-class>org.akraino.validation.ui.filter.SecurityXssFilter
+        </filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>SecurityXssFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+    <filter>
+        <filter-name>springSessionRepositoryFilter</filter-name>
+        <filter-class>org.onap.portalapp.music.filter.MusicSessionRepositoryFilter
+        </filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>springSessionRepositoryFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+        <dispatcher>REQUEST</dispatcher>
+        <dispatcher>ERROR</dispatcher>
+    </filter-mapping>
+    <error-page>
+        <location>/WEB-INF/jsp/error.jsp</location>
+    </error-page>
 
-<!DOCTYPE web-app PUBLIC
- "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
- "http://java.sun.com/dtd/web-app_2_3.dtd" >
-
-<web-app>
-  <display-name>Archetype Created Web Application</display-name>
-
-
-</web-app>
+</web-app>
\ No newline at end of file