summaryrefslogtreecommitdiffstats
path: root/WebContent/WEB-INF/web.xml
blob: 57207d7f18b767a40fc723bb8d9eca37af965fe4 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="vaadin-uitest" version="2.4"
	xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<!-- THIS IS A DEVELOPMENT AND TESTING web.xml . -->

	<display-name>Vaadin</display-name>
	<description>Vaadin examples</description>

	<context-param>
		<param-name>productionMode</param-name>
		<param-value>false</param-value>
	</context-param>

	<context-param>
		<param-name>resourceCacheTime</param-name>
		<param-value>3600</param-value>
	</context-param>
	<servlet>
		<servlet-name>Embed App 1</servlet-name>
		<servlet-class>com.vaadin.server.LegacyVaadinServlet</servlet-class>
		<init-param>
			<param-name>application</param-name>
			<param-value>com.vaadin.tests.components.button.Buttons</param-value>
		</init-param>
	</servlet>
	<servlet>
		<servlet-name>Embed App 2</servlet-name>
		<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
		<init-param>
			<param-name>UI</param-name>
			<param-value>com.vaadin.tests.components.label.MarginsInLabels</param-value>
		</init-param>
	</servlet>
	<servlet>
		<servlet-name>UI provider app</servlet-name>
		<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
		<init-param>
			<param-name>UIProvider</param-name>
			<param-value>com.vaadin.tests.applicationservlet.InitParamUIProvider</param-value>
		</init-param>
		<init-param>
			<param-name>UI</param-name>
			<param-value>com.vaadin.tests.VerifyAssertionsEnabled</param-value>
		</init-param>
	</servlet>

	<servlet>
		<servlet-name>VaadinApplicationRunner</servlet-name>
		<servlet-class>com.vaadin.launcher.ApplicationRunnerServlet</servlet-class>
		<!-- Non-default values for testing purposes -->
		<init-param>
			<param-name>heartbeatInterval</param-name>
			<param-value>301</param-value>
		</init-param>
		<init-param>
			<param-name>resourceCacheTime</param-name>
			<param-value>3601</param-value>
		</init-param>
		<init-param>
			<param-name>closeIdleSessions</param-name>
			<param-value>true</param-value>
		</init-param>
		<init-param>
			<param-name>testParam</param-name>
			<param-value>42</param-value>
		</init-param>
	</servlet>

	<!-- For testing GAE - the deployment script changes this to use GAEVaadinServlet -->
	<servlet>
		<servlet-name>IntegrationTest</servlet-name>
		<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
		<init-param>
			<param-name>UI</param-name>
			<param-value>com.vaadin.tests.integration.IntegrationTestUI</param-value>
		</init-param>
	</servlet>
	<servlet-mapping>
		<servlet-name>Embed App 1</servlet-name>
		<url-pattern>/embed1/*</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>Embed App 2</servlet-name>
		<url-pattern>/embed2/*</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>UI provider app</servlet-name>
		<url-pattern>/uiprovider/*</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>VaadinApplicationRunner</servlet-name>
		<url-pattern>/run/*</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>IntegrationTest</servlet-name>
		<url-pattern>/integration/*</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>IntegrationTest</servlet-name>
		<url-pattern>/VAADIN/*</url-pattern>
	</servlet-mapping>

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

</web-app>