1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
5
|
version="3.0">
|
6
|
|
7
|
<!--
|
8
|
NOTE: For a detailed overview on the spring MVC and application context
|
9
|
configuration and bootstrapping of this web application
|
10
|
see: http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping
|
11
|
-->
|
12
|
|
13
|
<description>cdmlib-vaadin web-application instance</description>
|
14
|
<display-name>cdmlib-vaadin</display-name>
|
15
|
|
16
|
<welcome-file-list>
|
17
|
<welcome-file>index.html</welcome-file>
|
18
|
</welcome-file-list>
|
19
|
|
20
|
<!-- This config seems to be the same as the servlet 3.0+ web application initializer
|
21
|
config found in eu.etaxonomy.cdm.vaadin.CdmAppInitializer but it doesn't work
|
22
|
-->
|
23
|
<listener>
|
24
|
<listener-class>
|
25
|
org.springframework.web.context.ContextLoaderListener
|
26
|
</listener-class>
|
27
|
</listener>
|
28
|
|
29
|
|
30
|
<servlet>
|
31
|
<description>CDM Remote API</description>
|
32
|
<servlet-name>cdm-vaadin</servlet-name>
|
33
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
34
|
<load-on-startup>1</load-on-startup>
|
35
|
</servlet>
|
36
|
|
37
|
<servlet-mapping>
|
38
|
<servlet-name>cdm-vaadin</servlet-name>
|
39
|
<url-pattern>/</url-pattern>
|
40
|
</servlet-mapping>
|
41
|
|
42
|
<filter>
|
43
|
<filter-name>charsetFilter</filter-name>
|
44
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
45
|
<init-param>
|
46
|
<param-name>encoding</param-name>
|
47
|
<param-value>UTF-8</param-value>
|
48
|
</init-param>
|
49
|
<init-param>
|
50
|
<param-name>forceEncoding</param-name>
|
51
|
<param-value>true</param-value>
|
52
|
</init-param>
|
53
|
</filter>
|
54
|
<filter-mapping>
|
55
|
<filter-name>charsetFilter</filter-name>
|
56
|
<url-pattern>/*</url-pattern>
|
57
|
</filter-mapping>
|
58
|
|
59
|
<filter>
|
60
|
<filter-name>dateHeaderFilter</filter-name>
|
61
|
<filter-class>eu.etaxonomy.cdm.servlet.DateHeaderFilter</filter-class>
|
62
|
</filter>
|
63
|
<filter-mapping>
|
64
|
<filter-name>dateHeaderFilter</filter-name>
|
65
|
<url-pattern>/*</url-pattern>
|
66
|
</filter-mapping>
|
67
|
|
68
|
<!-- Remoting Security -->
|
69
|
|
70
|
<filter>
|
71
|
<filter-name>springSecurityFilterChain</filter-name>
|
72
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
73
|
</filter>
|
74
|
<filter-mapping>
|
75
|
<filter-name>springSecurityFilterChain</filter-name>
|
76
|
<url-pattern>/*</url-pattern>
|
77
|
</filter-mapping>
|
78
|
|
79
|
|
80
|
</web-app>
|