WIP: Versuch den StaticTest zu reparieren...
[percentcodec] / examples / static / src / main / webapp / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app version="2.5" 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_2_5.xsd">
5
6   <!-- Context Configuration locations for Spring XML files -->
7
8   <context-param>
9     <param-name>contextConfigLocation</param-name>
10     <param-value>classpath:/config.xml</param-value>
11   </context-param>
12
13
14   <!-- Listener-Definitions -->
15
16   <listener>
17     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
18   </listener>
19
20
21   <!-- Filter-Definitions -->
22
23   <filter>
24     <filter-name>accelerator</filter-name>
25     <filter-class>de.halbekunst.juplo.cachecontrol.AcceleratorFilter</filter-class>
26   </filter>
27
28   <filter>
29     <filter-name>logger</filter-name>
30     <filter-class>de.halbekunst.juplo.test.LoggingHttpServletResponseFilter</filter-class>
31   </filter>
32
33
34   <!-- Filter-Mappings -->
35
36   <filter-mapping>
37     <filter-name>logger</filter-name>
38     <url-pattern>/static</url-pattern>
39   </filter-mapping>
40
41   <filter-mapping>
42     <filter-name>accelerator</filter-name>
43     <url-pattern>/static</url-pattern>
44   </filter-mapping>
45
46
47   <!-- Servlet-Definitions -->
48
49   <servlet>
50     <servlet-name>default</servlet-name>
51     <servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class>
52   </servlet>
53
54
55   <!-- Servlet-Mappings -->
56
57   <servlet-mapping>
58     <servlet-name>default</servlet-name>
59     <url-pattern>/</url-pattern>
60   </servlet-mapping>
61
62 </web-app>