PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/layers-service/src/main/webapp/WEB-INF/web.xml

http://alageospatialportal.googlecode.com/
XML | 72 lines | 57 code | 1 blank | 14 comment | 0 complexity | 2f14e2bf44840cdc050c91557d6b4f94 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 3    <display-name>ALA Spatial Layers Service</display-name>
 4    <!-- Reads request input using UTF-8 encoding -->
 5    <filter>
 6        <filter-name>characterEncodingFilter</filter-name>
 7        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
 8        <init-param>
 9            <param-name>encoding</param-name>
10            <param-value>UTF-8</param-value>
11        </init-param>
12        <init-param>
13            <param-name>forceEncoding</param-name>
14            <param-value>true</param-value>
15        </init-param>
16    </filter>
17    <filter-mapping>
18        <filter-name>characterEncodingFilter</filter-name>
19        <url-pattern>/*</url-pattern>
20    </filter-mapping>
21    <!-- JSONP callback filter -->
22    <filter>
23        <filter-name>JsonpFilter</filter-name>
24        <filter-class>au.org.ala.web.filter.JsonpFilter</filter-class>
25    </filter>
26    <filter-mapping>
27        <filter-name>JsonpFilter</filter-name>
28        <url-pattern>/*</url-pattern>
29    </filter-mapping>
30    <!-- Enables clean URLs with JSP views e.g. /welcome instead of /app/welcome -->
31    <filter>
32        <filter-name>UrlRewriteFilter</filter-name>
33        <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
34    </filter>
35    <filter-mapping>
36        <filter-name>UrlRewriteFilter</filter-name>
37        <url-pattern>/*</url-pattern>
38    </filter-mapping>
39    <!-- //// -->
40    <!-- //// -->
41    <!-- Handles all requests into the application -->
42    <servlet>
43        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
44        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
45        <init-param>
46            <param-name>contextConfigLocation</param-name>
47            <param-value>
48                /WEB-INF/spring/app-config.xml
49            </param-value>
50        </init-param>
51        <load-on-startup>1</load-on-startup>
52    </servlet>
53    <servlet-mapping>
54        <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
55        <url-pattern>/app/*</url-pattern>
56    </servlet-mapping>
57    <session-config>
58        <session-timeout>30</session-timeout>
59    </session-config>
60    <!-- /////////// -->
61    <!-- Miscellaneous -->
62    <welcome-file-list>
63        <welcome-file>index.jsp</welcome-file>
64    </welcome-file-list>
65    <!--
66    <listener>
67        <description>db connection</description>
68        <listener-class>org.ala.layers.util.DBConnection</listener-class>
69    </listener>
70    -->
71
72</web-app>