summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/webapp-onboarding/WEB-INF/web.xml
blob: 65b2bc4023d03a704fb356ff0503ef87a98e6deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
    version="3.0">

    <display-name>ASDC</display-name>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

    <servlet>
        <servlet-name>js</servlet-name>
        <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>

        <init-param>
            <param-name>cacheControl</param-name>
            <param-value>public, no-cache</param-value>
        </init-param>
        <init-param>
            <param-name>etags</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>js</servlet-name>
        <url-pattern>*.js</url-pattern>
    </servlet-mapping>

    <context-param>
        <param-name>org.eclipse.jetty.servlet.Default.dirAllowed</param-name>
        <param-value>false</param-value>
    </context-param>

    <servlet>
        <servlet-name>resources</servlet-name>
        <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>

        <init-param>
            <param-name>cacheControl</param-name>
            <param-value>public, max-age=31536000</param-value>
        </init-param>
        <init-param>
            <param-name>etags</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>redirects-list</param-name>
            <param-value>
                /v1.0/healthcheck
            </param-value>
        </init-param>
    </servlet>

    <servlet-mapping>
        <servlet-name>resources</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

</web-app>