]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.webapp.war/WEB-INF/web.xml
Introduction of annotation to handle MVC flows
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.webapp.war / WEB-INF / web.xml
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_2_5.xsd"
4 version="2.5">
5
6 <display-name>SLC Web Application</display-name>
7
8 <!-- SERVICE servlet -->
9
10 <!-- refactoring with annotation
11
12 <servlet>
13 <servlet-name>slc-service</servlet-name>
14 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
15 <init-param>
16 <param-name>contextClass</param-name>
17 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
18 </init-param>
19 <load-on-startup>1</load-on-startup>
20 </servlet>
21
22 <servlet-mapping>
23 <servlet-name>slc-service</servlet-name>
24 <url-pattern>*.service</url-pattern>
25 </servlet-mapping>
26
27 -->
28 <servlet>
29 <servlet-name>slcservice</servlet-name>
30 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
31 <init-param>
32 <param-name>contextClass</param-name>
33 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
34 </init-param>
35 <load-on-startup>1</load-on-startup>
36 </servlet>
37 <servlet-mapping>
38 <servlet-name>slcservice</servlet-name>
39 <url-pattern>*.service</url-pattern>
40 </servlet-mapping>
41
42 <!-- XSLT servlet -->
43 <servlet>
44 <servlet-name>xslt</servlet-name>
45 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
46 <init-param>
47 <param-name>contextClass</param-name>
48 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
49 </init-param>
50 </servlet>
51
52 <servlet-mapping>
53 <servlet-name>xslt</servlet-name>
54 <url-pattern>*.xslt</url-pattern>
55 </servlet-mapping>
56
57 <!-- DOC servlet -->
58 <servlet>
59 <servlet-name>doc</servlet-name>
60 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
61 <init-param>
62 <param-name>contextClass</param-name>
63 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
64 </init-param>
65 </servlet>
66
67 <servlet-mapping>
68 <servlet-name>doc</servlet-name>
69 <url-pattern>*.xls</url-pattern>
70 </servlet-mapping>
71 <servlet-mapping>
72 <servlet-name>doc</servlet-name>
73 <url-pattern>*.pdf</url-pattern>
74 </servlet-mapping>
75
76 <!-- PROVISIONING servlet -->
77 <servlet>
78 <servlet-name>provisioning</servlet-name>
79 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
80 <init-param>
81 <param-name>contextClass</param-name>
82 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
83 </init-param>
84 <load-on-startup>1</load-on-startup>
85 </servlet>
86 <servlet-mapping>
87 <servlet-name>provisioning</servlet-name>
88 <url-pattern>/dist/*</url-pattern>
89 </servlet-mapping>
90
91 <!-- General -->
92 <context-param>
93 <param-name>contextConfigLocation</param-name>
94 <param-value>/WEB-INF/applicationContext.xml</param-value>
95 </context-param>
96
97 <listener>
98 <display-name>Spring Context</display-name>
99 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
100 </listener>
101 <context-param>
102 <param-name>contextClass</param-name>
103 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
104 </context-param>
105
106 <!-- Security -->
107 <filter>
108 <filter-name>springSecurityFilterChain</filter-name>
109 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
110 </filter>
111
112 <filter-mapping>
113 <filter-name>springSecurityFilterChain</filter-name>
114 <url-pattern>/*</url-pattern>
115 </filter-mapping>
116
117 <!--
118 Log4j configContext loader config <listener>
119 <display-name>Log4j</display-name>
120 <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
121 </listener> <context-param>
122 <param-name>log4jConfigLocation</param-name>
123 <param-value>/WEB-INF/classes/log4j.properties</param-value>
124 </context-param> <context-param>
125 <param-name>log4jRefreshInterval</param-name>
126 <param-value>5000</param-value> </context-param>
127 -->
128 </web-app>