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