summaryrefslogtreecommitdiffstats
path: root/src/main/webapp/WEB-INF/web.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/WEB-INF/web.xml')
-rw-r--r--src/main/webapp/WEB-INF/web.xml68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..591c7d6
--- /dev/null
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -0,0 +1,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> \ No newline at end of file