Project

General

Profile

Download (3.43 KB) Statistics
| Branch: | Tag: | Revision:
1 ead0a1ab Cherian Mathew
<?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 e6b01164 Andreas Kohlbecker
  <!-- 
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 ab04087e Cherian Mathew
    <description>cdmlib-vaadin web-application instance</description>
14
    <display-name>cdmlib-vaadin</display-name>
15 ead0a1ab Cherian Mathew
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 fd9cf932 Andreas Kohlbecker
	 	  config found in eu.etaxonomy.cdm.vaadin.CdmAppInitializer but it doesn't work
22
      -->
23 ead0a1ab Cherian Mathew
    <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 793a7b67 Andreas Kohlbecker
    <servlet>
37
    	<servlet-name>Cdm_vaadin Application</servlet-name>
38
    	<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
39
    	<init-param>
40
    		<description>
41
    		Legacy mode to return the value of the property as a string from AbstractProperty.toString()</description>
42
    		<param-name>legacyPropertyToString</param-name>
43
    		<param-value>false</param-value>
44
    	</init-param>
45
    </servlet>
46 ead0a1ab Cherian Mathew
47
    <servlet-mapping>
48
        <servlet-name>cdm-vaadin</servlet-name>
49
        <url-pattern>/</url-pattern>
50
    </servlet-mapping>
51 793a7b67 Andreas Kohlbecker
    <servlet-mapping>
52
    	<servlet-name>Cdm_vaadin Application</servlet-name>
53
    	<url-pattern>/*</url-pattern>
54
    </servlet-mapping>
55 ead0a1ab Cherian Mathew
56
57
    <filter>
58
      <filter-name>charsetFilter</filter-name>
59
      <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
60
      <init-param>
61
        <param-name>encoding</param-name>
62
        <param-value>UTF-8</param-value>
63
      </init-param>
64
      <init-param>
65
        <param-name>forceEncoding</param-name>
66
        <param-value>true</param-value>
67
      </init-param>
68
    </filter>
69
    <filter-mapping>
70
      <filter-name>charsetFilter</filter-name>
71
      <url-pattern>/*</url-pattern>
72
    </filter-mapping>
73 e6b01164 Andreas Kohlbecker
  
74
    <!-- Remoting Security -->
75
76
    <filter>
77
      <filter-name>springSecurityFilterChain</filter-name>
78
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
79
    </filter>
80
    <filter-mapping>
81
      <filter-name>springSecurityFilterChain</filter-name>
82
      <url-pattern>/*</url-pattern>
83
    </filter-mapping>
84
  
85 0cb4f241 Andreas Kohlbecker
    <!-- 
86
      The production mode is disabled per default.
87
      
88
      There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
89
      which don't seem to have an effect. 
90
    -->
91
    <context-param>
92
      <description>Vaadin production mode</description>
93
      <param-name>productionMode</param-name>
94 5b4537c4 Andreas Kohlbecker
      <param-value>false</param-value>
95 0cb4f241 Andreas Kohlbecker
    </context-param>
96 793a7b67 Andreas Kohlbecker
    <context-param>
97
    	<description>
98
    	Vaadin production mode</description>
99
    	<param-name>productionMode</param-name>
100
    	<param-value>false</param-value>
101
    </context-param>
102 ead0a1ab Cherian Mathew
</web-app>