aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/src/main/webapp/WEB-INF/web.xml
blob: 68b77586095f891cabb01f4d0d0224ffadebdf34 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!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>


	<!-- Spring -->
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/beans-services.xml</param-value>
	</context-param>


	<listener>
		<listener-class>org.openecomp.server.listeners.OnboardingAppStartupListener</listener-class>
	</listener>

    <filter>
        <filter-name>cross-origin</filter-name>
        <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
        <init-param>
            <param-name>allowedOrigins</param-name>
            <param-value>*</param-value>
        </init-param>
        <init-param>
            <param-name>allowedMethods</param-name>
            <param-value>*</param-value>
        </init-param>
        <init-param>
            <param-name>allowedHeaders</param-name>
            <param-value>*</param-value>
        </init-param>
    </filter>

    <filter>
        <filter-name>AuthN</filter-name>
        <filter-class>org.openecomp.server.filters.ActionAuthenticationFilter</filter-class>
    </filter>
    <filter>
        <filter-name>AuthZ</filter-name>
        <filter-class>org.openecomp.server.filters.ActionAuthorizationFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>cross-origin</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>AuthN</filter-name>
        <url-pattern>/workflow/v1.0/actions/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>AuthZ</filter-name>
        <url-pattern>/workflow/v1.0/actions/*</url-pattern>
    </filter-mapping>
	<filter>
		<filter-name>LoggingServletFilter</filter-name>
		<filter-class>org.openecomp.core.logging.servlet.LoggingFilter</filter-class>
	</filter>

	<filter-mapping>
		<filter-name>LoggingServletFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	<!-- CXF -->
	<servlet>
		<servlet-name>CXFServlet</servlet-name>
		<display-name>CXF Servlet</display-name>
		<servlet-class>
			org.apache.cxf.transport.servlet.CXFServlet
		</servlet-class>
		<init-param>
			<param-name>redirects-list</param-name>
			<param-value>
				/docs/(\S)+\.json
			</param-value>
		</init-param>
		<init-param>
			<param-name>redirect-attributes</param-name>
			<param-value>
				javax.servlet.include.request_uri
			</param-value>
		</init-param>
		<init-param>
			<param-name>redirect-servlet-name</param-name>
			<param-value>default</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>CXFServlet</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>

</web-app>