]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.server.rap.webapp/WEB-INF/web.xml
Update license headers
[lgpl/argeo-commons.git] / server / modules / org.argeo.server.rap.webapp / 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>Argeo OSGi Webapp</display-name>
7
8 <!-- General -->
9 <context-param>
10 <param-name>contextConfigLocation</param-name>
11 <param-value>/WEB-INF/applicationContext.xml</param-value>
12 </context-param>
13
14 <listener>
15 <display-name>Spring Context</display-name>
16 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
17 </listener>
18 <context-param>
19 <param-name>contextClass</param-name>
20 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
21 </context-param>
22
23 <!-- OSGi Http Service -->
24 <servlet>
25 <servlet-name>service</servlet-name>
26 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
27 <init-param>
28 <param-name>contextClass</param-name>
29 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
30 </init-param>
31 <load-on-startup>1</load-on-startup>
32 </servlet>
33
34 <servlet-mapping>
35 <servlet-name>service</servlet-name>
36 <url-pattern>/*</url-pattern>
37 </servlet-mapping>
38
39 <!-- Security -->
40 <filter>
41 <filter-name>springSecurityFilterChain</filter-name>
42 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
43 </filter>
44 <!---->
45 <filter-mapping>
46 <filter-name>springSecurityFilterChain</filter-name>
47 <url-pattern>/private</url-pattern>
48 </filter-mapping>
49 <filter-mapping>
50 <filter-name>springSecurityFilterChain</filter-name>
51 <url-pattern>/basicauth</url-pattern>
52 </filter-mapping>
53 <filter-mapping>
54 <filter-name>springSecurityFilterChain</filter-name>
55 <url-pattern>/clientauth</url-pattern>
56 </filter-mapping>
57 <filter-mapping>
58 <filter-name>springSecurityFilterChain</filter-name>
59 <url-pattern>/none</url-pattern>
60 </filter-mapping>
61 <filter-mapping>
62 <filter-name>springSecurityFilterChain</filter-name>
63 <url-pattern>/public</url-pattern>
64 </filter-mapping>
65
66 </web-app>