Replace deprecated DOM.setElementAttribute().
[online-glom:gwt-glom.git] / src / main / webapp / WEB-INF / web.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
5         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
6         version="2.5">
7
8         <!-- Servlets -->
9         <servlet>
10                 <servlet-name>gwtGlomServlet</servlet-name>
11                 <servlet-class>org.glom.web.server.OnlineGlomServiceImpl</servlet-class>
12         </servlet>
13         
14         <servlet>
15                 <servlet-name>gwtGlomImagesServlet</servlet-name>
16                 <servlet-class>org.glom.web.server.OnlineGlomImagesServlet</servlet-class>
17         </servlet>
18
19         <servlet>
20                 <servlet-name>gwtGlomLoginServlet</servlet-name>
21                 <servlet-class>org.glom.web.server.OnlineGlomLoginServlet</servlet-class>
22         </servlet>
23
24         <servlet-mapping>
25                 <servlet-name>gwtGlomServlet</servlet-name>
26                 <url-pattern>/OnlineGlom/gwtGlom</url-pattern>
27         </servlet-mapping>
28
29         <servlet-mapping>
30                 <servlet-name>gwtGlomImagesServlet</servlet-name>
31                 <url-pattern>/OnlineGlom/gwtGlomImages</url-pattern>
32         </servlet-mapping>
33
34         <servlet-mapping>
35                 <servlet-name>gwtGlomLoginServlet</servlet-name>
36                 <url-pattern>/OnlineGlom/gwtGlomLogin</url-pattern>
37         </servlet-mapping>
38
39         <!-- Default page to serve -->
40         <welcome-file-list>
41                 <welcome-file>OnlineGlom.html</welcome-file>
42         </welcome-file-list>
43         
44         <!-- We do not do this, to demand HTTPS for the login servlet,
45              because its isAuthenicated method can succeed based on
46              the configuration file, with no transmission of 
47              credentials from the client.
48              Instead, the client refuses to send the credentials
49              if it is not using HTTPS, and the server refuses 
50              to examine any transmitted credentials if did
51              not receive them via HTTPS.
52         <security-constraint>
53                 <web-resource-collection>
54                         <url-pattern>/OnlineGlom/gwtGlomLogin/*</url-pattern>
55                 </web-resource-collection>
56                 <user-data-constraint>
57                         <transport-guarantee>CONFIDENTIAL</transport-guarantee>
58                 </user-data-constraint>
59         </security-constraint>
60         -->
61
62 </web-app>