summaryrefslogtreecommitdiffstats
path: root/src/main/webapp/WEB-INF/web.xml
blob: 591c7d660db5e6e7222e192f52be64b394820f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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_3_0.xsd"
         version="3.0">
    <servlet>
        <servlet-name>registerServlet</servlet-name>
        <servlet-class>org.qcg.qcgdata.gdrop.RegisterServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>getFileServlet</servlet-name>
        <servlet-class>org.qcg.qcgdata.gdrop.GetFileServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>errorHandlingServlet</servlet-name>
        <servlet-class>org.qcg.qcgdata.gdrop.ErrorHandlingServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>setUpDB</servlet-name>
        <servlet-class>org.qcg.qcgdata.gdrop.SetUpDBServlet</servlet-class>
    </servlet>

    <servlet>
        <servlet-name>deleteServlet</servlet-name>
        <servlet-class>org.qcg.qcgdata.gdrop.DeleteServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>registerServlet</servlet-name>
        <url-pattern>/register</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>getFileServlet</servlet-name>
        <url-pattern>/get/*</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>errorHandlingServlet</servlet-name>
        <url-pattern>/error</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>setUpDB</servlet-name>
        <url-pattern>/setup</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>deleteServlet</servlet-name>
        <url-pattern>/delete</url-pattern>
    </servlet-mapping>

    <error-page>
        <exception-type>org.qcg.qcgdata.gdrop.exception.GDropException</exception-type>
        <location>/error</location>
    </error-page>

    <resource-ref>
        <description>GDrop database</description>
        <res-ref-name>jdbc/gdropdb</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>
</web-app>