Project

General

Profile

Download (3.63 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
    		Vaadin UI class to use</description>
42
    		<param-name>UI</param-name>
43
    		<param-value>com.example.cdm_vaadin.Cdm_vaadinUI</param-value>
44
    	</init-param>
45
    	<init-param>
46
    		<description>
47
    		Legacy mode to return the value of the property as a string from AbstractProperty.toString()</description>
48
    		<param-name>legacyPropertyToString</param-name>
49
    		<param-value>false</param-value>
50
    	</init-param>
51
    </servlet>
52 ead0a1ab Cherian Mathew
53
    <servlet-mapping>
54
        <servlet-name>cdm-vaadin</servlet-name>
55
        <url-pattern>/</url-pattern>
56
    </servlet-mapping>
57 793a7b67 Andreas Kohlbecker
    <servlet-mapping>
58
    	<servlet-name>Cdm_vaadin Application</servlet-name>
59
    	<url-pattern>/*</url-pattern>
60
    </servlet-mapping>
61 ead0a1ab Cherian Mathew
62
63
    <filter>
64
      <filter-name>charsetFilter</filter-name>
65
      <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
66
      <init-param>
67
        <param-name>encoding</param-name>
68
        <param-value>UTF-8</param-value>
69
      </init-param>
70
      <init-param>
71
        <param-name>forceEncoding</param-name>
72
        <param-value>true</param-value>
73
      </init-param>
74
    </filter>
75
    <filter-mapping>
76
      <filter-name>charsetFilter</filter-name>
77
      <url-pattern>/*</url-pattern>
78
    </filter-mapping>
79 e6b01164 Andreas Kohlbecker
  
80
    <!-- Remoting Security -->
81
82
    <filter>
83
      <filter-name>springSecurityFilterChain</filter-name>
84
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
85
    </filter>
86
    <filter-mapping>
87
      <filter-name>springSecurityFilterChain</filter-name>
88
      <url-pattern>/*</url-pattern>
89
    </filter-mapping>
90
  
91 0cb4f241 Andreas Kohlbecker
    <!-- 
92
      The production mode is disabled per default.
93
      
94
      There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
95
      which don't seem to have an effect. 
96
    -->
97
    <context-param>
98
      <description>Vaadin production mode</description>
99
      <param-name>productionMode</param-name>
100 5b4537c4 Andreas Kohlbecker
      <param-value>false</param-value>
101 0cb4f241 Andreas Kohlbecker
    </context-param>
102 793a7b67 Andreas Kohlbecker
    <context-param>
103
    	<description>
104
    	Vaadin production mode</description>
105
    	<param-name>productionMode</param-name>
106
    	<param-value>false</param-value>
107
    </context-param>
108 ead0a1ab Cherian Mathew
</web-app>