Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote-webapp / src / main / webapp / WEB-INF / web.xml @ 30acb146

History | View | Annotate | Download (2.68 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4
  version="3.0">
5

    
6
  <!-- 
7
       NOTE: For a detailed overview on the spring MVC and application context 
8
       configuration and bootstrapping of this web application 
9
       see: http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping 
10
  -->
11

    
12
  <description>cdmlib-remote web-application instance</description>
13
  <display-name>cdmlib-remote-webapp</display-name>
14

    
15
  <welcome-file-list>
16
    <welcome-file>index.html</welcome-file>
17
  </welcome-file-list>
18

    
19
  <!-- Creates the Spring Container shared by all Servlets and Filters -->
20
  <context-param>
21
    <param-name>contextConfigLocation</param-name>
22
    <param-value>/WEB-INF/applicationContext.xml</param-value>
23
  </context-param>
24
  <listener>
25
    <!-- loads by default /WEB-INF/applicationContext.xml but this can be overridden above -->
26
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
27
  </listener>
28

    
29

    
30
  <servlet>
31
    <description>CDM Remote API</description>
32
    <servlet-name>cdmlib-remote</servlet-name>
33
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
34
    <load-on-startup>1</load-on-startup>
35
    <!-- loads by default policy /WEB-INF/cdmlib-remote-servlet.xml -->
36
  </servlet>
37

    
38
  <servlet-mapping>
39
    <servlet-name>cdmlib-remote</servlet-name>
40
    <url-pattern>/</url-pattern>
41
  </servlet-mapping>
42

    
43

    
44
  <filter>
45
    <filter-name>charsetFilter</filter-name>
46
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
47
    <init-param>
48
      <param-name>encoding</param-name>
49
      <param-value>UTF-8</param-value>
50
    </init-param>
51
    <init-param>
52
      <param-name>forceEncoding</param-name>
53
      <param-value>true</param-value>
54
    </init-param>
55
  </filter>
56
  <filter-mapping>
57
    <filter-name>charsetFilter</filter-name>
58
    <url-pattern>/*</url-pattern>
59
  </filter-mapping>
60

    
61
  <filter>
62
       <filter-name>dateHeaderFilter</filter-name>
63
       <filter-class>eu.etaxonomy.cdm.remote.DateHeaderFilter</filter-class>
64
  </filter>
65
    <filter-mapping>
66
    <filter-name>dateHeaderFilter</filter-name>
67
    <url-pattern>/*</url-pattern>
68
  </filter-mapping>
69

    
70
  <!-- Remoting Security -->
71

    
72
  <filter>
73
    <filter-name>springSecurityFilterChain</filter-name>
74
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
75
  </filter>
76
  <filter-mapping>
77
    <filter-name>springSecurityFilterChain</filter-name>
78
    <url-pattern>/*</url-pattern>
79
  </filter-mapping>
80
  
81
  
82
</web-app>
Add picture from clipboard (Maximum size: 40 MB)